Can os.remove followed by os.path.isfile disagree?
Tim Golden
mail at timgolden.me.uk
Wed Jun 6 11:00:48 EDT 2007
ppaterson at gmail.com wrote:
> Can os.path.isfile(x) ever return True after os.remove(x) has
> successfully completed? (Windows 2003, Python 2.3)
As an afterthought, have you tried NTFS auditing, or
directory monitoring, such as:
http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html#use_readdirectorychanges
to see the sequence of events on the directory? At least
that might confirm whether you are seeing
delete-create-delete or some other pattern.
TJG
More information about the Python-list
mailing list