Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: disallow --wrap with --to-files
Fixes #10611. When we are adding to an MFS folder ("--to-files=folder/"), we append the filename to the folder name. However, when wrapping, the wrapping folder has no name and `path.Base("")` returns `.`. This creates a folder named "." inside the previous one. But mfs operations like `ls` think that "." is the current folder, and does not contemplate the option of a folder of name ".". Dealing with unnamed files in MFS is in general a footgun, so this commits attempts to prohibit that case.
- Loading branch information