rtac.utils.clean_logs

Functions

is_file_open(filepath)

Check if any process is using the file.

remove_fuse_hidden_files(directory)

Removes hidden fuse files that may clutter the log directory.

rtac.utils.clean_logs.is_file_open(filepath: str) bool[source]

Check if any process is using the file.

Parameters:

filepath (str) – Path to the file we want to know if it is open.

Returns:

True if file is open, False if not.

Return type:

bool

rtac.utils.clean_logs.remove_fuse_hidden_files(directory: str) None[source]

Removes hidden fuse files that may clutter the log directory.

Parameters:

directory (str) – Path to the directory to declutter from fuse files.

Return type:

None