DIR reports file timestamp and size, but os.path.getctime(), os.path.getsize() raise WindowsError [Error 5] Access is denied
Emile van Sebille
emile at fenx.com
Tue May 22 11:26:50 EDT 2012
On 5/21/2012 5:01 PM python at bdurham.com said...
> Wondering if any of you have stumbled across the following behavior:
<snip>
> Any ideas on how I can retrieve timestamps and file sizes like DIR
> without raising exceptions?
Beyond the obvious trap the error and use the commands module to run DIR
directly?
Emile
More information about the Python-list
mailing list