|
From: <bc...@wo...> - 2001-11-09 15:24:37
|
[dman] >In both Jython and CPython (2.1), > os.makedirs( "~/tmp/not/./new" ) >fails, however > os.makedirs( "~/tmp/not//new" ) >succeeds. > >The GNU 'mkdir' program works with either path (if --parents argument >is given, or all but last directory exist). > >Should os.makedirs() call os.normalize() first, or is this supposed to >be a client responsibility? I think it is the responsibility of the program, but I don't have a strong opinion about it. Strangly enough, both your examples works fine for me. Both example nicely creates a new directory below my $CWD called "~/tmp/not/new" (on win2k and jdk14b3). Right now our os.makedirs() function consist on a simple call to. File(path).mkdirs() It just feels really good to push the whole file system semantic nighmare over on java and forgot about it. regards, finn |