Skip to content

Exception Catching for "This function is not supported on this system." #72

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

Open
hl2guide opened this issue Dec 26, 2021 · 1 comment
Open
Labels

Comments

@hl2guide
Copy link

Run on Windows 10: vacuum.exe -p 5

Removing directory C:\Users\Dean\AppData\Local\Temp\0E8864CE-4A70-466C-AB25-AB2350AA663C… This function is not supported on this system.
System.IO.IOException: This function is not supported on this system.
   at Microsoft.VisualBasic.FileIO.FileSystem.ThrowWinIOError(Int32 )
   at Microsoft.VisualBasic.FileIO.FileSystem.ShellFileOperation(SHFileOperationType , ShFileOperationFlags , String , String , UICancelOption , FileOrDirectory )
   at Microsoft.VisualBasic.FileIO.FileSystem.ShellDelete(String , UIOptionInternal , RecycleOption , UICancelOption , FileOrDirectory )
   at Microsoft.VisualBasic.FileIO.FileSystem.DeleteDirectoryInternal(String , DeleteDirectoryOption , UIOptionInternal , RecycleOption , UICancelOption )
   at Microsoft.VisualBasic.FileIO.FileSystem.DeleteDirectory(String , UIOption , RecycleOption )
   at Vacuum.Program.remove(Boolean force, AbsolutePath item)
@ForNeVeR
Copy link
Owner

ForNeVeR commented Dec 26, 2021

This usually means that administrator's rights are required to delete these items.

No idea which process creates that, but I periodically observe the same situation (GUID-like directories which may only be deleted with elevated permissions) on my computers.

I usually clean them up via sudo pwsh -c vacuum, but, obviously, on your computer, it's up to you.

There's a plan to stop showing exception stack traces for such cases (#23), but I don't think anything else could be done with that regard. This is an actual error we're getting from the system when trying to remove these items. We may try to guess what's usually wrong and suggest the user to restart the program with elevation, though?

@ForNeVeR ForNeVeR added the bug label Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants