Methods
|
|
|
|
__init__
|
__init__ ( self )
|
|
cdup
|
cdup ( self )
Change to the parent of the current directory.
|
|
current_directory
|
current_directory ( self )
Return a string representing the current directory.
|
|
cwd
|
cwd ( self, path )
Change the working directory.
cwd, cdup, open, listdir
|
|
isdir
|
isdir ( self, path )
Does the path represent a directory?
|
|
isfile
|
isfile ( self, path )
Does the path represent a plain file?
|
|
listdir
|
listdir (
self,
path,
long=0,
)
Return a listing of the directory at path The empty string
indicates the current directory. If long is set, instead
return a list of (name, stat_info) tuples
|
|
longify
|
longify ( self, path )
Return a long representation of the filename
[for the output of the LIST command]
|
|
open
|
open (
self,
path,
mode,
)
Return an open file object
|
|
stat
|
stat ( self, path )
Return the equivalent of os.stat() on the given path.
TODO: implement a cache w/timeout for stat()
|