lyoutakoduka / spartaproject

MIT License
0 stars 0 forks source link

Fix argument of class CompressArchive in class EditArchive #35

Closed lyoutakoduka closed 7 months ago

lyoutakoduka commented 7 months ago

When using class "EditArchive", archive you edited isn't updated by correct name, only update by default name.

https://github.com/lyoutakoduka/spartaproject/blob/17299b0a343cbbb6d30da5e4ac2d9d8c89bc29be/pyspartaproj/script/file/archive/edit_archive.py#L23

In order to update archive by the name which is same as current archive name, use argument "archive_id" of class "CompressArchive".

https://github.com/lyoutakoduka/spartaproject/blob/17299b0a343cbbb6d30da5e4ac2d9d8c89bc29be/pyspartaproj/script/file/archive/edit_archive.py#L68

lyoutakoduka commented 7 months ago

Fix condition of test about function "test_multiple" in module "test_edit_archive".

Test must be confirmed the count and path about sequential archives before edit and after.

https://github.com/lyoutakoduka/spartaproject/blob/17299b0a343cbbb6d30da5e4ac2d9d8c89bc29be/test/script/file/archive/test_edit_archive.py#L277

In addition, rename test function from "test_multiple" to "test_limit" from now on.

lyoutakoduka commented 7 months ago

Add method to class to compute something by using list of path at once.

  1. Add method "compress_at_once" which add list of file or directory at once to archive.

https://github.com/lyoutakoduka/spartaproject/blob/17299b0a343cbbb6d30da5e4ac2d9d8c89bc29be/pyspartaproj/script/file/archive/compress_archive.py#L33

  1. Add method "decompress_at_once" which take out list of file or directory at once from archive.

https://github.com/lyoutakoduka/spartaproject/blob/17299b0a343cbbb6d30da5e4ac2d9d8c89bc29be/pyspartaproj/script/file/archive/decompress_archive.py#L26

  1. Add method "trash_at_once" which remove list of file or directory at once.

https://github.com/lyoutakoduka/spartaproject/blob/17299b0a343cbbb6d30da5e4ac2d9d8c89bc29be/pyspartaproj/script/path/safe/safe_trash.py#L15