casinotools.utilities package

Submodules

casinotools.utilities.path module

Utility methods related to path operation used by casinotools.

casinotools.utilities.path.create_path(path)[source]

Create a path from the input string if does not exists.

Does not try to distinct between file and directory in the input string. path = “dir1/filename.ext” => “dir1/filename.ext/” where the new directory “filename.ext” is created.

@param[in] path input string.

@return the path with the path separator at the end.

casinotools.utilities.path.find_all_files(root, patterns='*', ignorePathPatterns='', ignoreNamePatterns='', single_level=False, yield_folders=False)[source]

Find all files in a root folder. From Python Cookbook section 2.16 pages 88–90

casinotools.utilities.path.get_current_module_path(modulePath, relativePath='')[source]
casinotools.utilities.path.is_bad_file(file_path)[source]
casinotools.utilities.path.is_git_lfs_file(file_path)[source]

casinotools.utilities.test_path module

Module contents