Accessing windoze file attributes

Diez B. Roggisch deets at web.de
Wed Sep 15 13:28:32 CEST 2010


Douglas <mummerx at gmail.com> writes:

> Hi, can anyone direct a relative newbie to the best source of info?
> I am writing my own backup app in Python 2.5.2 (all my company will
> allow me to use) using IDLE.
> I intend to run this app daily via the Task Scheduler to back up a
> mission-critical spreadsheet that only I use.
> It works well enough, but now I want to make it sensitive to the "A"
> attribute (only backup the file if it is set), and update it
> afterwards (unset it). This will help me avoid wasted disk due to
> needless backups.
> I have searched the inter-web and not found any info on how to do
> access/alter Windows file attributes.
> Please can someone direct me to a web page with suitable info
> (preferably with code snyppyts)?

No windows nowhere here, but os.stat should be your friend.

Diez



More information about the Python-list mailing list