strange interaction between open and cwd
Peter Otten
__peter__ at web.de
Mon May 3 09:46:35 EDT 2010
Baz Walter wrote:
> attempting to remove the cwd would produce an error). but how can python
> determine the parent directory of a directory that no longer exists?
My tentative explanation would be that the directory, namely the inode,
still exists -- only the entry for it in its parent directory is gone.
So "one level up from here" is still a valid operation, but there is no
longer a path in the file system associated with "here".
Peter
More information about the Python-list
mailing list