Package libprs500 :: Module communicate :: Class File
[hide private]
[frames] | no frames]

Class File

source code


Wrapper that allows easy access to all information about files/directories

Instance Methods [hide private]
  __init__(self, file)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __repr__(self)
Return path to self
  __str__(self)
str(x)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__


Instance Variables [hide private]
  is_dir
True if self is a directory
  is_readonly
True if self is readonly
  size
Size in bytes of self
  ctime
Creation time of self as a epoch
  wtime
Creation time of self as an epoch
  path
Path to self
  name
Name of self

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, file)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
Return path to self
Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

Instance Variable Details [hide private]

is_dir

True if self is a directory

is_readonly

True if self is readonly

size

Size in bytes of self

ctime

Creation time of self as a epoch

wtime

Creation time of self as an epoch

path

Path to self

name

Name of self