File Functions¶
- betterfunctions.filefunctions.create_directory(name)¶
Creates a new directory.
- Parameters:
name (
str) – The name of the new directory.
- betterfunctions.filefunctions.create_text_file(text, directory=None, filename='file.txt')¶
Creates a text file in a directory with given name and given text.
- betterfunctions.filefunctions.file_size(file_path, size_type='KB')¶
Returns the size of a file.