Autorest: Hard to remove leftover of temporary files

Created on 13 Apr 2021  路  3Comments  路  Source: Azure/autorest

Describe the bug
Normal operations of running autorest produce files with 3 dots in names. These files is extremely hard to remove using Windows explorer.
For example:

  • C:\Users\user\AppData\Local\Temp\autorest-jv97C5\mem-135-merged-20oai3-20doc...
  • C:\Users\user\AppData\Local\Temp\autorest-jv97C5\mem-138-composed-20oai3-20doc...

Expected behavior
Change names for the temp files.

bug

Most helpful comment

So we actually have a autorest --clear-temp flag that lets you do just that.

All 3 comments

Can't you just delete the folders starting with autorest-?

only from command line. and since all of them in separate folders, it's annoying to remove. Not even rename allowed. Issue probably related to extension-less files creation in Explorer where you have to put . in the end of file, but not sure.

So we actually have a autorest --clear-temp flag that lets you do just that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vishrutshah picture vishrutshah  路  4Comments

farlee2121 picture farlee2121  路  4Comments

lmazuel picture lmazuel  路  4Comments

hartmannr76 picture hartmannr76  路  3Comments

fearthecowboy picture fearthecowboy  路  4Comments