Package SCons :: Package Node :: Module FS :: Class LocalFS
[hide private]
[frames] | no frames]

Class LocalFS

source code

object --+
         |
        LocalFS
Known Subclasses:

This class implements an abstraction layer for operations involving a local file system. Essentially, this wraps any function in the os, os.path or shutil modules that we use to actually go do anything with or to the local file system.

Note that there's a very good chance we'll refactor this part of the architecture in some way as we really implement the interface(s) for remote file system Nodes. For example, the right architecture might be to have this be a subclass instead of a base class. Nevertheless, we're using this as a first step in that direction.

We're not using chdir() yet because the calling subclass method needs to use os.chdir() directly to avoid recursion. Will we really need this one?

Instance Methods [hide private]
 
chmod(self, path, mode) source code
 
copy(self, src, dst) source code
 
copy2(self, src, dst) source code
 
exists(self, path) source code
 
getmtime(self, path) source code
 
getsize(self, path) source code
 
isdir(self, path) source code
 
isfile(self, path) source code
 
link(self, src, dst) source code
 
lstat(self, path) source code
 
listdir(self, path) source code
 
makedirs(self, path) source code
 
mkdir(self, path) source code
 
rename(self, old, new) source code
 
stat(self, path) source code
 
symlink(self, src, dst) source code
 
open(self, path) source code
 
unlink(self, path) source code
 
islink(self, path) source code
 
readlink(self, file) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__