Classes | Functions | Variables
rosclean Namespace Reference


class  CleanupException


def _ask_and_call
def _get_check_dirs
def _rosclean_cmd_check
def _rosclean_cmd_purge
def _usage
def get_disk_usage
def get_human_readable_disk_usage
def rosclean_main


string __version__ = '1.7.0'

Function Documentation

def rosclean._ask_and_call (   cmds,
  cwd = None 
) [private]
Pretty print cmds, ask if they should be run, and if so, runs
them using subprocess.check_call.

:param cwd: (optional) set cwd of command that is executed, ``str``
:returns: ``True`` if cmds were run.

Definition at line 46 of file src/rosclean/

def rosclean._get_check_dirs ( ) [private]

Definition at line 80 of file src/rosclean/

def rosclean._rosclean_cmd_check (   argv) [private]

Definition at line 87 of file src/rosclean/

def rosclean._rosclean_cmd_purge (   argv) [private]

Definition at line 130 of file src/rosclean/

def rosclean._usage ( ) [private]

Definition at line 71 of file src/rosclean/

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: :exc:`CleanupException` If get_disk_usage() cannot be used on this platform

Definition at line 109 of file src/rosclean/

Get human-readable disk usage for directory

:param d: directory path, ``str`
:returns: human-readable disk usage (du -h), ``str``

Definition at line 93 of file src/rosclean/

def rosclean.rosclean_main (   argv = None)

Definition at line 141 of file src/rosclean/

Variable Documentation

string rosclean::__version__ = '1.7.0'

Definition at line 35 of file src/rosclean/

Author(s): Ken Conley
autogenerated on Thu Jan 2 2014 11:52:46