libtbx.path
index
/net/chevy/raid1/nat/src/cctbx_project/libtbx/path.py

 
Modules
       
locale
posixpath
os
shutil
sys

 
Classes
       
__builtin__.object
clean_out_directory
directory
path_mixin
absolute_path
relocatable_path

 
class absolute_path(path_mixin)
    
Method resolution order:
absolute_path
path_mixin
__builtin__.object

Methods defined here:
__abs__(self)
__add__(self, ext)
__div__(self, other)
__init__(self, path, case_sensitive=False)
__repr__(self)
dirname(self)
reset(self, new_path, case_sensitive=False)

Methods inherited from path_mixin:
__truediv__(self, path)
access(self, *args, **kwds)
basename(self)
bat_value(self, anchor_var='LIBTBX_BUILD')
chmod(self, *args, **kwds)
exists(self)
ext(self)
is_relocatable(self)
isdir(self)
isfile(self)
listdir(self)
makedirs(self)
open(self, *args, **kwds)
remove(self)
remove_tree(self)
samefile(self, other)
sh_value(self, anchor_var='LIBTBX_BUILD')
split(self)

Data descriptors inherited from path_mixin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class clean_out_directory(__builtin__.object)
    Utility for cleaning out Phenix (etc.) project folders, which tend to
accumulate large amounts of temporary files and other large objects (CCP4
maps, .geo files, etc.) which we may not want to keep around forever.
 
  Methods defined here:
__init__(self, path_name, delete_kin_files=True, delete_geo_files=True, delete_map_files=True, delete_temp_dirs=True, delete_probe_files=True)
delete_directory(self, dir_name)
delete_file(self, file_name)
get_freed_space(self)
run(self, out=<open file '<stdout>', mode 'w'>)
show(self, out=<open file '<stdout>', mode 'w'>)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
n_total

 
class directory(__builtin__.object)
     Methods defined here:
__init__(self, path)
get(self, name, must_exist=True)
sub_directory(self, name, must_exist=True)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class path_mixin(__builtin__.object)
     Methods defined here:
__truediv__(self, path)
access(self, *args, **kwds)
basename(self)
bat_value(self, anchor_var='LIBTBX_BUILD')
chmod(self, *args, **kwds)
exists(self)
ext(self)
is_relocatable(self)
isdir(self)
isfile(self)
listdir(self)
makedirs(self)
open(self, *args, **kwds)
remove(self)
remove_tree(self)
samefile(self, other)
sh_value(self, anchor_var='LIBTBX_BUILD')
split(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class relocatable_path(path_mixin)
    
Method resolution order:
relocatable_path
path_mixin
__builtin__.object

Methods defined here:
__abs__(self)
__add__(self, ext)
__div__(self, path)
__eq__(self, other)
__idiv__(self, path)
__init__(self, anchor, relocatable)
__repr__(self)
basename(self)
dirname(self)
normcase(self)
self_or_abs_if(self, flag)

Data descriptors defined here:
anchor

Methods inherited from path_mixin:
__truediv__(self, path)
access(self, *args, **kwds)
bat_value(self, anchor_var='LIBTBX_BUILD')
chmod(self, *args, **kwds)
exists(self)
ext(self)
is_relocatable(self)
isdir(self)
isfile(self)
listdir(self)
makedirs(self)
open(self, *args, **kwds)
remove(self)
remove_tree(self)
samefile(self, other)
sh_value(self, anchor_var='LIBTBX_BUILD')
split(self)

Data descriptors inherited from path_mixin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
abs_norm(path)
abs_real_norm(path)
canonical_path(file_name, effective_current_working_directory=None)
create_target_dir(target_file)
directory_size(path)
http://stackoverflow.com/questions/1392413/calculating-a-directory-size-using-python
full_command_path(command, search_first=[], search_last=[])
is_same_canoncial_file(file_names)
is_same_file(file_names, effective_current_working_directory=None)
makedirs_race(path=None, max_trials=10, delay_if_exists=0.001, delay_after_exception=0.5)
move_old(path, serial_sep='_', serial_fmt='%03d')
move_old_create_new_directory(path, serial_sep='_', serial_fmt='%03d')
norm_join(*args)
nt_is_true_abs(path)
nt_relpath(path, start='.', enable_abspath_if_through_root=False)
posix_relpath(path, start='.', enable_abspath_if_through_root=False)
random_new_directory_name(prefix='tmp_dir_', number_of_hex_code_digits=8)
relpath = posix_relpath(path, start='.', enable_abspath_if_through_root=False)
tail_levels(path, number_of_levels)
walk_source_tree(top, arg=None)

 
Data
        division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)