Conversation
| """ | ||
| if recursive: | ||
| target = os.path.join(target, "**") | ||
| files = glob.glob(target, recursive=recursive) |
There was a problem hiding this comment.
According to the documentation, it seems glob is used for Unix shell only?
There was a problem hiding this comment.
Looks like there could be some inconsistencies (see this post) but it should work for our current use case.
There was a problem hiding this comment.
Thanks for looking into that. I think it should be fine as long as it works for our current use case. As said, we can always revisit it in the future if our usage goes beyond the available scope.
There was a problem hiding this comment.
If this fails, it seems like we can use regex workarounds. I don't think we use any [ or ] characters within our data directories, so hopefully any of those characters in parent directories won't be a problem.
BainanXia
left a comment
There was a problem hiding this comment.
Not sure how to test it throughout. But some native tests locally on my mac work as expected.
Purpose
Another small chunk to support windows natively. This one splits the
removemethod so that the one inLocalDataAccessis os independent.What the code is doing
rmcommand on server, and before deleting local glob matchesSSHDataAccessimplementation, since there is no analog for local version (return types have to match)forceparameter and hard code the resulting-foption since we always pass it to the server, and it's not needed locallyrecursivein move.py so it matches what we do in delete.pyTesting
The main thing to test is the new glob used in the local implementation. I did this manually by creating some nested folders and checking the files matched. Also tested with the confirmation prompt using the server based container setup.
Time estimate
15 min