-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Save modified time of files to zip, restore modified time of files on… #999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… unzip. Tests. Fix RemoveMarkedFiles.
|
koka@koka:~/src/croc/src/utils$ go test -v --- PASS: TestZipEmptyDirectory (0.00s) |
|
It doesn't seem to work? Sender: Receiver: $ ../croc --yes zackary Receiving 'src.zip' (894.2 kB)
$ ls -l --full-time src
total 48
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 cli
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 comm
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 compress
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 croc
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 crypt
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 diskusage
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 install
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 message
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 mnemonicode
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.588749583 -0800 models
drwxrwxr-x 3 zns zns 4096 2025-11-18 11:14:11.589749596 -0800 tcp
drwxrwxr-x 2 zns zns 4096 2025-11-18 11:14:11.589749596 -0800 utilsI was expecting the receiver to have modified times |
|
Yes, this version save times of files to zip and restore times of files but not dirs on unzip /tmp/roundtrip_test1909451369/source/subdir: /tmp/roundtrip_test1909451369/source/subdir2: 1koka@debian:~/src/croc/src$ croc send --zip /tmp/roundtrip_test1909451369/source On the other computer run: Sending (->192.168.0.12:54218) ----------------------------------recv Receiving (<-127.0.0.1:56662) source/subdir: source/subdir2: Next I fix restore times of dirs |
…imes on unzip. Tests.
|
---send /tmp/roundtrip_test/source/subdir: /tmp/roundtrip_test/source/subdir2: ---recv source/subdir: source/subdir2: |
|
Awesome thank you!! |
… unzip. Tests. Fix RemoveMarkedFiles.