New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duck CLI: Issued delete command for a file, entire folder deleted #11756
Comments
Replying to [comment:3 dkocher]:
Verified with
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
CLI v7.10.0 (35184)
After updating to 7.10.0 (35184), the following command was issued in a Windows batch file:
Instead of deleting the 20210425-Guinan-Daily_20210430015501.nbd file in the Diff folder, the ENTIRE Diff folder was deleted. That is, instead of deleting 1 file, it deleted 74 files and the folder they were in. This script has been used for months without issue, but this happened only after the 7.10.0 update. I see that the command should have been "--delete" and the script mistakenly has "-delete", but as I said, the script has worked fine for months. The log file (logfile.txt) contained the following:
This is what a log file for a delete command typically contains:
The script was run against a set of 25 files across 8 folders. All 8 folders were deleted, deleting 331 files instead of the 25.
Note that the list had multiple files from a given folder. The first file deletion command for a given folder deleted the folder. When the delete command was subsequently issued for the other files in the folder, the log file showed this:
Fortunately, most of the files could be recovered from a local cache, but this is pretty upsetting.
Let me know if you need anything else.
The text was updated successfully, but these errors were encountered: