-
Notifications
You must be signed in to change notification settings - Fork 39
Description
I thought overwriting, which is the default, didn't warn by design, but if the --quiet is designed to suppress these warnings, they must have been designed. :)
No warning for single files:
(py) PS C:\ps-test> aws-crypto -e -m key=$keyid -i .\TestDIR\Hello.txt -o .\TestDirEnc
(py) PS C:\ps-test> aws-crypto -e -m key=$keyid -i .\TestDIR\Hello.txt -o .\TestDirEnc
(py) PS C:\ps-test> aws-crypto -e -m key=$keyid -i .\TestDIR\Hello.txt -o .\TestDirEnc
(py) PS C:\ps-test>
PowerShell
(py) PS C:\ps-test> 1..3 | foreach { aws-crypto -e -m key=$keyid -i .\TestDIR\Hello.txt -o .\TestDirEnc }
(py) PS C:\ps-test>
No warning for multiple files in a directory:
(py) PS C:\ps-test> dir .\TestDirEnc
Directory: C:\ps-test\TestDirEnc
Mode LastWriteTime Length Name
-a---- 10/4/2017 1:34 PM 2713 cool-new-thing.py.encrypted
-a---- 10/4/2017 1:34 PM 620 Employees.csv.encrypted
-a---- 10/4/2017 1:34 PM 585 Hello.txt.encrypted
(py) PS C:\ps-test> 1..3 | foreach { aws-crypto -e -m key=$keyid -i .\TestDIR* -o .\TestDirEnc }
(py) PS C:\ps-test>