filesystem

Utilities involving the filesystem that other tasks have needed repeatedly – namely, functions that assist with proper handling of temporary files.

Functions

cleanup

This function serves as an aggregate entrypoint for the other two.

get_files_recursively

This function takes a directory, and adds all of its files to an array, then traverses through any subdirectories and adds those files too.

remove_temp_directories

This function empties and removes all the directories passed to it.

remove_temp_files

This function removes all the files passed to it.