osh :: file :: File :: Class File
[frames] | no frames]

Class File

source code

object --+        
         |        
basestring --+    
             |    
           str --+
                 |
                File

Instance Methods
 
__init__(self, dir, file=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from str: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __repr__, __rmod__, __rmul__, __str__, capitalize, center, count, decode, encode, endswith, expandtabs, find, index, isalnum, isalpha, isdigit, islower, isspace, istitle, isupper, join, ljust, lower, lstrip, partition, replace, rfind, rindex, rjust, rpartition, rsplit, rstrip, split, splitlines, startswith, strip, swapcase, title, translate, upper, zfill

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__

Static Methods
a new object with type S, a subtype of T
__new__(self, dir, file=None) source code
Properties
  abspath
Absolute path to this file.
  stat
Information on this file, as returned by os.stat.
  mode
mode of this file.
  inode
inode of this file.
  device
device of this file.
  links
Number of links of this file.
  uid
Owner of this file.
  gid
Owning group of this file.
  size
Size of this file (bytes).
  atime
Access time of this file.
  mtime
Modify time of this file.
  ctime
Change time of this file.
  isdir
True iff this file is a directory.
  isfile
True iff this file is neither a directory nor a symlink.
  islink
True iff this file is a symlink.

Inherited from object: __class__

Method Details

__new__(self, dir, file=None)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__init__(self, dir, file=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Property Details

abspath

Absolute path to this file.

Get Method:
unreachable(self)

stat

Information on this file, as returned by os.stat.

Get Method:
unreachable(self)

mode

mode of this file.

Get Method:
unreachable(self)

inode

inode of this file.

Get Method:
unreachable(self)

device

device of this file.

Get Method:
unreachable(self)

links

Number of links of this file.

Get Method:
unreachable(self)

uid

Owner of this file.

Get Method:
unreachable(self)

gid

Owning group of this file.

Get Method:
unreachable(self)

size

Size of this file (bytes).

Get Method:
unreachable(self)

atime

Access time of this file.

Get Method:
unreachable(self)

mtime

Modify time of this file.

Get Method:
unreachable(self)

ctime

Change time of this file.

Get Method:
unreachable(self)

isdir

True iff this file is a directory.

Get Method:
unreachable(self)

isfile

True iff this file is neither a directory nor a symlink.

Get Method:
unreachable(self)

islink

True iff this file is a symlink.

Get Method:
unreachable(self)