Closed lyoutakoduka closed 2 months ago
Change in the specifications for finalization process in class "FileHistory" of modue "safe_file_history".
You can close class instance by method "close_history" explicitly, then got the history of file operation as structure "PathPair2" at that time.
Add two methods to check that selected path include specific root path.
1: Method "is_relative" confirm single specific path. 2: Method "is_relative_array" confirm list of specific paths at once.
1: Add directory which will placed removed file or directory to class "SafeTrash" as argument.
https://github.com/lyoutakoduka/spartaproject/blob/6179312ca9dd98ec7dc1ebb22ebd928d7a65e155/pyspartaproj/script/path/safe/safe_trash.py#L16
2: Add argument to code which use class "SafeTrash".
https://github.com/lyoutakoduka/spartaproject/blob/6179312ca9dd98ec7dc1ebb22ebd928d7a65e155/pyspartaproj/script/file/archive/take_out_archive.py#L65
https://github.com/lyoutakoduka/spartaproject/blob/6179312ca9dd98ec7dc1ebb22ebd928d7a65e155/pyspartaproj/script/file/shortcut/create_shortcut.py#L54
https://github.com/lyoutakoduka/spartaproject/blob/6179312ca9dd98ec7dc1ebb22ebd928d7a65e155/pyspartaproj/script/file/archive/edit_archive.py#L60