Message9469
After reading source code, it was related to os.lstat and os.stat changes in PosixModule which was made on 2/29/2014 and 4/25/2014:
String absolutePath = absolutePath(path);
// round tripping from a string to a file to a string loses
// trailing slashes so add them back back in to get correct posix.lstat
// behaviour if path is not a directory.
if (asPath(path).endsWith(File.separator)) {
absolutePath = absolutePath + File.separator;
}
return PyStatResult.fromFileStat(posix.lstat(absolutePath));
According to the change, it will apppend a backslash(For Windows) to the absolute path if the origin path ends with a backslash. But the posix.lstat will report error if the path ends with a backslash.
Not sure it's an issue for posix implemation in jnr-posix or the path should not be appended a backslash. |
|
Date |
User |
Action |
Args |
2015-01-31 07:13:05 | kaneg | set | messageid: <1422688385.19.0.915941471725.issue2255@psf.upfronthosting.co.za> |
2015-01-31 07:13:05 | kaneg | set | recipients:
+ kaneg, pekka.klarck, zyasoft |
2015-01-31 07:13:05 | kaneg | link | issue2255 messages |
2015-01-31 07:13:04 | kaneg | create | |
|