Message3460
This is a bug/"feature" in the MSVCRT stat function, which Jython uses through jna-
posix.
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
int main(void) {
struct stat foo;
int retval = stat("c:\\Documents and Settings\\", &foo);
fprintf(stderr, "stat returned %d\n", retval);
perror("stat");
}
% ./stat
stat returned -1
stat: No such file or directory
If you remove the trailing \, it works fine. |
|
Date |
User |
Action |
Args |
2008-08-29 20:57:30 | nriley | set | messageid: <1220043450.36.0.908581721491.issue1110@psf.upfronthosting.co.za> |
2008-08-29 20:57:30 | nriley | set | recipients:
+ nriley, jy123 |
2008-08-29 20:57:30 | nriley | link | issue1110 messages |
2008-08-29 20:57:30 | nriley | create | |
|