Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage A Python file info object

Tech Computer Center logo

The PathInfo object, defined in the source file, represents status information for a file or directory. It is basically just some sugarcoating around the standard Python library functions from the os module.

Its built-in .__str__() method displays the file's information on a line with this format,

drwxrwxrwx  yyyy-mm-dd hh:mm:ss  p
that is, the permissions (as in the Unix ls command), the modification timestamp, and the pathname.

Exported methods in the PathInfo object are listed below. Methods described as ``predicates'' return a nonzero integer for true, zero for false.

See also: Systems programming in Python
Previous: oldfiles: Where are my oldest files?
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman,
Last updated: 2004/03/07 01:47:13 UT
QR two-dimensional bar code