lck.common 0.4.4 documentation
Filesystem based utilities.
Finds a specific file using explicitly given path (or given by an environment variable). The algorithm is as follows: for every given path from the args (explicitly given, environment variable, fallback) check whether the file exists. If it doesn’t and the path is not absolute, search the working directory, its parent directory and all child directories, the current user’s home directory and /etc.
Parameters: |
|
---|---|
Returns: | the real absolute path to the file. Raises IOError if no found. |