module PyOs
Defined in:
py2cr/py_os.crClass Method Summary
-
.environ
os.environ : Does not match python behavior whereby a missing key will cause an error
-
.find_subdir_tree(dir)
Similar to a unix find, but only gets the directory and subdirectories
-
.getenv(arg)
os.getenv
-
.walk(dir)
Should be equivalent of python os.walk function.
Class Method Detail
def self.environ
#
os.environ : Does not match python behavior whereby a missing key will cause an error
def self.find_subdir_tree(dir)
#
Similar to a unix find, but only gets the directory and subdirectories
def self.walk(dir)
#
Should be equivalent of python os.walk function.
Note that we create a new Dir.find_subdir_tree since Crystal has no
builtin equivalent of a Unix find
.