Scratch#
- class pyedb.generic.filesystem.Scratch(local_path, permission=511, volatile=False)#
Overview#
Import detail#
from pyedb.generic.filesystem import Scratch
Property detail#
- property Scratch.path#
- property Scratch.is_empty#
Method detail#
- Scratch.remove()#
- Scratch.copyfile(src_file, dst_filename=None)#
Copy a file to the scratch directory. The target filename is optional. If omitted, the target file name is identical to the source file name.
- Scratch.copyfolder(src_folder, destfolder=None)#
- Parameters:
- src_folder
- destfolder
- Returns:
- Scratch.__enter__()#
- Scratch.__exit__(ex_type, ex_value, ex_traceback)#