distillery_packager v0.4.2 DistilleryPackager.Utils.File

This module provides functions about the filesystem.

Summary

Functions

Retrieves all the files within a directory, retrieves the size of all these files, then adds them all together

List all files recursively

Remove all files that match a name

Remove junk files from the data directory

Remove tmp directories used when building the deb

Functions

get_dir_size(dir)

Retrieves all the files within a directory, retrieves the size of all these files, then adds them all together.

ls_r(path \\ ".")

List all files recursively

remove_all_files_by_name(root, name)

Remove all files that match a name

remove_fs_metadata(data_dir)

Remove junk files from the data directory.

remove_tmp(dir)

Remove tmp directories used when building the deb