Muhammed Can Küçükaslan

Results 34 comments of Muhammed Can Küçükaslan

> Sounds like this could be the same issue as in #441 I agree that this is related to it. I've tried to reproduce error. I've tried to sync from...

You're right, s5cmd does not support _versioning-enabled buckets_. The simplest way to do it seems to be using s3 console (as you said) or using alternatives such as [s3wipe](https://github.com/eschwim/s3wipe). AWS...

## Updates ### Background The last version that supported the autocompletion was [v7.0.0](https://github.com/peak/s5cmd/releases/tag/v0.7.0). It used [posener/complete](https://github.com/posener/complete) and correctly handled s3 key completions. However it didn't completed local files/directories. I've implemented[^imp]...

I'm closing this PR in favour of #500. Among the autocompletion solutions: ### Posener/complete it supports zsh, bash and fish it has two relevant[^rlvt] advantages : - it is possible...

Thanks, a lot to both of you! ## Current logic of sync To determine which files are to be copied, sync commands need to identify which files are present in...

I ran a few tests with sync (when it was using encoding/xml, but now uses encoding/json). I created 1,000,000 files each with 16 bytes size (using `truncate` & `split`). Then...

## Updates it was using encoding/xml, but now uses encoding/json format to write disk. it now allows specifying chunk size. If a nonpositive chunk size is provided than, it sorts...

I guess using [StableSort](https://github.com/peak/s5cmd/blob/2a6c7cc858cc350965bd0bc51abf81498118ef02/command/sync.go#L223-L226) would make difference only if the filepath.ToSlash was called before the sort operation, not [after](https://github.com/peak/s5cmd/blob/2a6c7cc858cc350965bd0bc51abf81498118ef02/command/sync.go#L240-L248). Furthermore I think using filepath.ToSlash is problematic. Because it, potentially, breaks...

I've implemented another variant that uses gob encoding instead of the json encoding in [this branch](https://github.com/Kucukaslan/s5cmd/tree/sync-gob-encoding). I've also written a [test code](https://github.com/peak/s5cmd/pull/483#test-code:~:text=the%20external%20sorting.-,test%20code%3A,-func%20TestFromToBytes) to compare their respective encoding/decoding[^bytes] speeds. The gob...

> Thanks a lot for [trying gob](https://github.com/Kucukaslan/s5cmd/commit/36f6793cf00fde41178c5296950d70a6b3eaadfc) for encoding/decoding. Let's go with gob, because: > > * `ToBytes` and `FromBytes` functions are more readable and type-safe. > * Gop implementation...