Commit Graph

88 Commits

Author SHA1 Message Date
Nathan Fisher 22faadc34e Add verbose option for extracting and creating archives to list files
(to be implemented)
2024-03-31 23:17:59 -04:00
Nathan Fisher 3bc8b9aa80 Use `Listing` as message type for parallel actions 2024-03-31 23:12:07 -04:00
Nathan Fisher e3dddc3dd9 Display sizes in human readable form 2024-02-24 01:32:13 -05:00
Nathan Fisher 3e9a34af7e Add ability to display total sizes when displaying listings or
extracting archives
2024-02-24 00:29:23 -05:00
Nathan Fisher 44e2741727 Update Roadmap 2024-02-23 19:18:07 -05:00
Nathan Fisher 4a7c0748e0 Commit unsaved changes from previous commit 2024-02-23 19:13:13 -05:00
Nathan Fisher 4b0318036f Proofread docs, move filename reads into helper function `load_filename` 2024-02-23 19:10:50 -05:00
Nathan Fisher 30fcaa8e07 Merge binary into project 2024-02-22 19:15:04 -05:00
Nathan Fisher 0f4ca019d2 Implement creating a `Stream` of `Node`s over stdin 2024-01-23 16:55:35 -05:00
Nathan Fisher e60acbbda2 Add pathname to message when there is an error creating, writing or extracting an archive node when we are operating in parallel 2024-01-23 15:02:38 -05:00
Nathan Fisher ce1c383f44 Add ability to write archives to stdout 2024-01-23 14:31:21 -05:00
Nathan Fisher 9938e7252a Update roadmap 2024-01-23 00:50:04 -05:00
Nathan Fisher 2c0fcc47a0 Add detection for zstd compression. Reader must implement Read + Seek 2024-01-23 00:07:03 -05:00
Nathan Fisher 3269da7fe8 Add ability to override uid/gid when creating an archive 2024-01-19 00:26:54 -05:00
Nathan Fisher 1740dcb79c Add Stream::extract_with() and Stream::par_extract_with() methods which run a function for each Node in an archive 2024-01-17 22:36:07 -05:00
Nathan Fisher c60e385dd0 Fix Clippy lints and improve documentation 2024-01-17 01:58:36 -05:00
Nathan Fisher ab259da64b Add to roadmap 2024-01-16 00:19:32 -05:00
Nathan Fisher eae8abffc7 Implement ability to specify uid:gid when extracting files; Misc code cleanup 2024-01-15 23:58:34 -05:00
Nathan Fisher bfe9d25c86 Add Roadmap section to the Readme 2024-01-15 11:03:16 -05:00
Nathan Fisher 6796422224 replace missing space in listing formatting 2024-01-15 00:55:18 -05:00
Nathan Fisher 876d5fa87b Fix incorrect error bubbling from non-Result statement 2024-01-15 00:52:43 -05:00
Nathan Fisher 2b078a8d70 Fix incorrect print! syntax 2024-01-15 00:51:47 -05:00
Nathan Fisher 888fa27a0e Fix misuse of write! in last commit 2024-01-15 00:50:15 -05:00
Nathan Fisher 01d5da2d89 For archive listings, print '-' as the size for nodes other than regular files 2024-01-15 00:45:59 -05:00
Nathan Fisher d3ea6c0971 Partially remove Seek constraint from ListingStream, extract fifo node in tests 2024-01-15 00:29:50 -05:00
Nathan Fisher 98fcfd7f5e Use `sort_unstable` rather than `sort` when creating listings 2024-01-01 23:32:40 -05:00
Nathan Fisher 1036e90238 Add space between datetime and filename for listings 2024-01-01 19:08:13 -05:00
Nathan Fisher fb49922662 Export listing::Kind as ListingKind 2024-01-01 18:56:13 -05:00
Nathan Fisher b25a49260e Impl From<Node> for Listing 2024-01-01 18:30:24 -05:00
Nathan Fisher 63b414b7fd Add `print_color` for archive listings, format dates in archive listings 2023-12-30 23:40:57 -05:00
Nathan Fisher 97643b58e8 Add date/time formatting for listings 2023-12-30 19:01:37 -05:00
Nathan Fisher 2591d102d6 Add ListingStream type 2023-12-29 23:52:05 -05:00
Nathan Fisher 3c708430ae Add tests for PartialOrd for Listing 2023-12-29 00:31:49 -05:00
Nathan Fisher 9531c0268a Implement Display and PartialOrd for Listing struct 2023-12-23 19:03:12 -05:00
Nathan Fisher ae7c9b08b3 Add Listing type for generating a listing of files in an archive 2023-12-22 19:03:17 -05:00
Nathan Fisher c2e377d09e Combine fifo node tests 2023-12-18 00:18:13 -05:00
Nathan Fisher 6d0b17c2d9 Fix potential collisions between file and hardlink tests when run in parallel 2023-12-18 00:12:35 -05:00
Nathan Fisher 03486321ed Combine multiple tests to avoid io collisions when tests run in parallel 2023-12-18 00:09:26 -05:00
Nathan Fisher 71e0ba30d1 Add test for extracting hardlinks; Fix multiple bugs revealed in tests; TODO: fix possible io errors caused by tests running in parallel; 2023-12-17 19:07:25 -05:00
Nathan Fisher 0ef17ca2ec Add test for extracting symlink nodes and fix behavior 2023-12-16 18:49:44 -05:00
Nathan Fisher b534cf6d49 Create test for load/store fifo node 2023-12-16 00:40:19 -05:00
Nathan Fisher d26a5c5805 Add test for creating, storing and loading hardlink nodes 2023-12-15 19:04:44 -05:00
Nathan Fisher 46c41e1c13 Ran through and fixed clippy lints 2023-12-15 18:49:36 -05:00
Nathan Fisher 455a2d36f9 Add test for loading and storing symlink nodes and fix multiple logic errors 2023-12-15 00:25:08 -05:00
Nathan Fisher e226f1982d Add several tests; Fix blocking when creating fifo node caused by opening file for reading - move the open to the block which runs only if it is a normal file; 2023-12-12 09:02:36 -05:00
Nathan Fisher 3c49fb2324 Add test for hardlink nodes and ensure it passes 2023-12-12 01:45:27 -05:00
Nathan Fisher ff1afa6453 Add test for creating symlink nodes and fix code to pass test 2023-12-11 19:29:29 -05:00
Nathan Fisher 49f1954a57 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/tar-ng into odin 2023-10-28 19:11:15 -04:00
Nathan Fisher 5028250a7e Add "node::extract" test; Remove test objects from git; 2023-10-28 19:10:10 -04:00
Nathan Fisher 3483bf155b During node creation, don't attempt to get size from metadata, which can
be wildly off on zfs filesystems
2023-09-11 01:27:11 -04:00