ibmfl.storage
¶
File Storage¶
-
class
ibmfl.storage.file_store.
FileStore
(base_location)[source]¶ -
clear
(directory)[source]¶ delete all files of a specified fl sub directory
- Parameters
directory – fl sub dir name to clear
-
dir_exists
(fl_dir)[source]¶ check if a specified directory exists under the fl main directory
- Parameters
fl_dir – directory name
- Returns
location
-
get
(location, filename)[source]¶ retrieve a specific file from a specific directory
- Parameters
location – fl sub directory to look in
filename – file name to look for
- Returns
path to file
-
get_latest
(directory)[source]¶ retrieve the most recently generated from a specified directory
- Parameters
directory – the fl sub directory to search in
- Returns
path to file
-