Method to check that the environment is conformant to the standard.
Parameters
----------
working_path : str
the path where all files resulting from previous AIMs are stored,
files_name : str
the Preservation files name, to identify the input directory.
Raises
------
FileNotFoundError
if the specified WORKING_PATH is non-existent, or if the specified WORKING_PATH structure is not conformant, or if the specified FILES_NAME is non-existent.
Returns
-------
str
the path where the files to be processed during the current execution are stored.
"""
ifnotpath.exists(working_path):
raiseFileNotFoundError("The specified WORKING_PATH is non-existent!")
temp_path=path.join(working_path,'temp')
ifnotos.path.exists(temp_path):
raiseFileNotFoundError("The specified WORKING_PATH structure is not conformant!")
temp_path=path.join(temp_path,files_name)
ifnotos.path.exists(temp_path):
raiseFileNotFoundError("The specified FILES_NAME is non-existent!")