unintentional clear output folder
See original GitHub issueAutorest will clear output folder when I don’t specify --clear-output-folder in command line or anywhere. Even I try to use --clear-output-folder=false to force it not to clear the output folder, it won’t work.
To repro:
- run this command
autorest --typescript --version=3.1.3 --use=@autorest/typescript@6.0.0-beta.9 --modelerfour.lenient-model-deduplication --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=../azure-sdk-for-js ../azure-rest-api-specs/specification/dns/resource-manager/readme.md
- run
rush update && rush build
, we should be able to see the review folder after it finishes. - run this command again
autorest --typescript --version=3.1.3 --use=@autorest/typescript@6.0.0-beta.9 --modelerfour.lenient-model-deduplication --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=../azure-sdk-for-js ../azure-rest-api-specs/specification/dns/resource-manager/readme.md
You will see review or dist or dist-esm folder is gone.
I also tried to remove the --version=3.1.3 and run autorest --reset
before I run those commands, still not working.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
NEED TO RECOVER Accidental CMD deletion of folders and ...
This morning I happened to come across a file that I had saved to my desktop screen that was not deleting and so...
Read more >How to Recover Accidentally Deleted Folder From My PC
Click on Start; Type History; Choose History Folder; Go to search bar, type the folder name; Select it and click on Restore icon....
Read more >[2022] 4 Methods to Undo Deleted Files on Windows
Accidentally deleted files from computer hard disk, all lost files will go to the Recycle bin folder, for this case, you can use...
Read more >How to prevent deleting files/directory accidentally in Unix ...
Prevent files from an accidental deletion in Linux It means you can't delete, modify the file, even if you're the file owner and...
Read more >Undo of folder deletion brings back empty folder · Issue #111022
I just deleted a folder accidentally and Ctrl+Z does not retrieve the files, instead only returns an emtpy folder. Please help @JacksonKearl @ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, I am assuming your statement is:
That looks like a reasonable thing to do. Let me send the PR soon for this. Let me know if my understanding is correct
Code complete with PR https://github.com/Azure/autorest.typescript/pull/1173