Add overwrite option to save to folder#2156
Conversation
|
I'm wondering if this should explicitly be tested to make sure it will work on Windows. I think it is always tricky to predict when a |
|
I think it is a good idea to test this. I will read more about it. I do feel though that we have other overwrites somewhere else that are not tested but probably they should be tested as well. |
|
@zm711 @alejoe91 Creating a test for this is definitley out of the scope in this PR. In fact, I think that most of these problems will appear because of our own in-house of multi-processing and IO (the ChunkRecordingExeccutor) and it should be tested in a multi plataform in that context. Another possibility is that ther are issues with file permissions in which case we can try to use an If you have seen some issue where it was a permission issues please point it to me but I also believe this out of scope for this PR as well as the solution should be more general. |
That will be complicated because they recently changed that moving forward for 3.12 (onerror will become onexec). I tested that error on a Win32 error and it failed (while running the test suite on my machine and I tried to fix one test folder by incorporating that), but I think it works for Win5 errors. So I don't think that will be the overall solution.
I'll track down those errors. By my recollection we have 3-5 issues where this has come up. Do you want me to just open an issue and link them all so that it is not in this PR?
As far as being out of scope for this PR. Fair enough for me. |
That would be great. I just want to see if they are permission errors or in-use errors.
I am aware of the change but I thought that they only changed the signature of the last parameter. Can you desribe (in the issue that you will open) what error failed. I will switch to windows later today to test some errors and I can take a look into it. |
|
I've got to work on some other stuff first, but I'll open the issue sometime this weekend when I have time to comb the issues. |
|
Hey guys! I agree that correctly handling Windows policies for file/folder deletion is super important but outside of the scope of this PR. Let's move the discussion on a specific issue as @zm711 suggested |
As in the title.