A generic class for file system entries. This class is for
when we don't know yet whether the entry being looked up is a file
or a directory. Instances of this class can morph into either
Dir or File objects by a later, more precise lookup.
Note: this class does not define __cmp__ and __hash__ for
efficiency reasons. SCons does a lot of comparing of
Node.FS.{Base,Entry,File,Dir} objects, so those operations must be
as fast as possible, which means we want to use Python's built-in
object identity comparisons.
|
|
|
|
|
|
|
|
|
|
|
|
|
__str__(self)
A Node.FS.Base object's string representation is its path
name. |
source code
|
|
|
|
|
|
|
rstr(self)
A Node.FS.Base object's string representation is its path
name. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
srcnode(self)
If this node is in a build path, return the node
corresponding to its source file. |
source code
|
|
|
get_path(self,
dir=None)
Return path relative to the current working directory of the
Node.FS.Base object that owns us. |
source code
|
|
|
set_src_builder(self,
builder)
Set the source code builder for this node. |
source code
|
|
|
|
|
|
|
for_signature(self)
Return a string representation of the Node that will always
be the same for this particular Node, no matter what. |
source code
|
|
|
get_subst_proxy(self)
This method is expected to return an object that will function
exactly like this Node, except that it implements any additional
special features that we would like to be in effect for
Environment variable substitution. |
source code
|
|
|
target_from_source(self,
prefix,
suffix,
splitext=<function splitext at 0x1dd3410>)
Generates a target entry that corresponds to this entry (usually
a source file) with the specified prefix and suffix. |
source code
|
|
|
|
|
Rfindalldirs(self,
pathlist)
Return all of the directories for a given path list, including
corresponding "backing" directories in any repositories. |
source code
|
|
|
RDirs(self,
pathlist)
Search for a list of directories in the Repository list. |
source code
|
|
|
|
|
_glob1(self,
pattern,
ondisk=True,
source=False,
strings=False) |
source code
|
|
Inherited from Node :
Decider ,
add_dependency ,
add_ignore ,
add_prerequisite ,
add_source ,
add_to_implicit ,
add_to_waiting_parents ,
add_to_waiting_s_e ,
add_wkid ,
all_children ,
alter_targets ,
build ,
builder_set ,
built ,
changed ,
changed_since_last_build ,
children ,
children_are_up_to_date ,
clear ,
clear_memoized_values ,
del_binfo ,
disambiguate ,
do_not_store_info ,
env_set ,
executor_cleanup ,
explain ,
get_binfo ,
get_build_env ,
get_build_scanner_path ,
get_builder ,
get_cachedir_csig ,
get_csig ,
get_env ,
get_env_scanner ,
get_executor ,
get_found_includes ,
get_implicit_deps ,
get_ninfo ,
get_source_scanner ,
get_state ,
get_stored_implicit ,
get_stored_info ,
get_string ,
get_target_scanner ,
has_builder ,
has_explicit_builder ,
is_derived ,
is_literal ,
is_up_to_date ,
make_ready ,
missing ,
multiple_side_effect_has_builder ,
new_binfo ,
new_ninfo ,
postprocess ,
prepare ,
push_to_cache ,
remove ,
render_include_tree ,
reset_executor ,
retrieve_from_cache ,
scan ,
scanner_key ,
select_scanner ,
set_always_build ,
set_executor ,
set_explicit ,
set_nocache ,
set_noclean ,
set_precious ,
set_specific_source ,
set_state ,
state_has_changed ,
store_info ,
visited
|