package documentation
Undocumented
From __init__.py:
| Exception | |
Undocumented |
| Function | get |
Get disk usage in bytes for directory :param d: directory path, str :returns: disk usage in bytes (du -b) or (du -A) * 1024, int :raises: CleanupException If get_disk_usage() cannot be used on this platform... |
| Function | get |
Get human-readable disk usage for directory |
| Function | rosclean |
Undocumented |
| Variable | __version__ |
Undocumented |
| Function | _ask |
ask user with provided comment. If user responds with y, return True |
| Function | _ask |
Pretty print cmds, ask if they should be run, and if so, runs them using _call(). |
| Function | _call |
Runs cmds using subprocess.check_call. |
| Function | _get |
Undocumented |
| Function | _get |
Undocumented |
| Function | _rosclean |
Undocumented |
| Function | _rosclean |
Undocumented |
| Function | _sort |
Get files and directories in specified path sorted by last modified time :param d: directory path, `str` :return: a list of files and directories sorted by last modified time (old first), `list` |
| Function | _usage |
Undocumented |
Pretty print cmds, ask if they should be run, and if so, runs them using _call().
| Parameters | |
| cmds | a list of commands executed one after another, list |
| cwd | (optional) set cwd of command that is executed, str |
| Returns | |
| True if cmds were run. | |
ask user with provided comment. If user responds with y, return True
| Parameters | |
| comment | comment, str |
| Returns | |
| True if user responds with y | |
Runs cmds using subprocess.check_call.
| Parameters | |
| cmds | a list of commands executed one after another, list |
| cwd | (optional) set cwd of command that is executed, str |
Get human-readable disk usage for directory
| Parameters | |
| d | directory path, ``str` |
| Returns | |
| human-readable disk usage (du -h), str | |
Get disk usage in bytes for directory
:param d: directory path, str
:returns: disk usage in bytes (du -b) or (du -A) * 1024, int
:raises: CleanupException If get_disk_usage() cannot be used on this platform