Nathan Zimmerberg

Results 150 comments of Nathan Zimmerberg

When renaming directories instead of files, does that mean oldpath and newpath can refer to the same directory shortly after rename succeeds?

The issue with using `cp` is that it is not atomic for directories. It makes the destination directory and then copies the files one at a time (if I understand...

@mzaffalon @KnutAM Do you think the example error message in the PR #3827 will help others workaround similar issues? I don't know how to test this in a real-world scenario...

I found a way to reproduce the error on Linux, but it requires sudo so try this at your own risk. After running this I had to manually move my...

If the rename was retried after sleeping for some increasing amount of time, would that solve this issue, or does the anti-virus always stop Julia from doing a rename?

Good, the new `test_roundtrip_seekstart` is catching the bug in this PR. It is best practice for `startproc` to always fully reset the state of the codec.

I'm like the function name `rename` because this function is basically [rename(2)](https://man7.org/linux/man-pages/man2/rename.2.html) using libuv to provide an approximation of `rename` on Windows. I would say the main difference between `rename`...

Here are some examples of where this functionality is used currently. https://github.com/JuliaIO/HDF5.jl/blob/fbcd95dde2083c9f8c8ef6defaaf7fafd2552123/src/file.jl#L155 https://github.com/yha/AtomicFileWrite.jl/blob/0fbb7cf5b0e8ef899b2682ea70f5483923636504/src/AtomicFileWrite.jl#L24 https://github.com/medyan-dev/MEDYANSimRunner.jl/blob/67d5b42cc599670486d5d640260a95e951091f7a/src/file-saving.jl#L83 https://github.com/JuliaLang/Pkg.jl/pull/4001

I am closing this, as this is mostly an inherent limitation of mmap on Windows. Currently, DiskArrays.jl can be used as described in https://discourse.julialang.org/t/struggling-to-use-mmap-with-ziparchives/129839/19 There, reading is done with: ```julia...

I have a PR #176 to switch from PyCall to PythonCall which seems to fix the CI