nidor1998 / s3sync

Full featured, very fast s3 synchornization CLI tool powered by rust
Apache License 2.0
19 stars 2 forks source link

Unwrap None #6

Closed FredrikNoren closed 10 months ago

FredrikNoren commented 1 year ago

Describe the bug I'm getting this error: thread 'tokio-runtime-worker' panicked at 'calledOption::unwrap()on aNonevalue', /Users/fredrik/.cargo/registry/src/index.crates.io-6f17d22bba15001f/s3sync-0.1.10/src/pipeline/head_object_checker.rs:138:38

To Reproduce Using s3sync to download from s3 to a local directory

Desktop (please complete the following information):

nidor1998 commented 1 year ago

@FredrikNoren Thank you for reporting. I will check it.

What we know at this point is that the attempt to get a timestamp of the local file system failed.

nidor1998 commented 1 year ago

I was able to reproduce it. This is a special situation that occurs when downloading an object to local disk with a key name ending in "/" and an object size greater than 0 bytes.

This is a difficult case to handle because of incompatibilities between object storage and block device file systems.

s3sync outputs a warning message and skips the download.

This is currently being tested.

nidor1998 commented 1 year ago

@FredrikNoren

I Fixed it. Please check it out.

https://github.com/nidor1998/s3sync/releases/tag/v0.1.11