Obtaining the attributes and properties of a folder recursively.
Tim Golden
mail at timgolden.me.uk
Fri Mar 20 05:53:44 EDT 2009
venutaurus539 at gmail.com wrote:
> Hello all,
> Is there any way to list out all the properties (name,
> type, size) and attributes( Accesstime, mod time, archived or readonly
> etc) of a folder and its contents recursively. Should I need ot go
> inside each and every directory to list them? This has to be for
> Windows.
> I have to obtain the following attriubtes of all the files
> recursively in a directory:
>
> NAME\ FILE CREATION TIME \ MODIFICATION TIME \ ACCESS TIME \
> ATTRIBUTES \ ACLs \ File SIze \
If you feel like living dangerously, try my
in-progress-but-already-working Winsys package:
http://timgolden.me.uk/python/downloads/WinSys-0.3dev.win32.exe
and do the following:
<code>
from winsys import fs
for f in fs.flat ("c:/temp"):
f.dump ()
</code>
TJG
More information about the Python-list
mailing list