Temporary directory cleanup not seeing files

Advertisement

raina
Donor
Joined:
Posts:
7
Location:
Finland

Temporary directory cleanup not seeing files

Hi,

I have basically every option in set Preferences > Storage > Temporary directory and additionally, use a custom directory of "%temp%\WinSCP". This works beautifully to keep the temporary files of multiple sessions separate and organized clearly under session names and corresponding to the servers' hierarchy. And the custom directory is a good, clean entry point for an editor's (VS Code) integrated file tree/browser with nothing but WinSCP files.

The only problem I'm seeing is that WinSCP never automatically asks to clean up the files as it would with simpler/default settings. Nor does it find anything when using the Clean Up... function manually from the connection dialog. And the reason seems pretty clear looking at the Cleanup application data dialog: The Temporary folders option is pointing to "%temp%\Winscp\scp?????". With my settings, no scp????? directories ever appear, just the likes of "%temp%\WinSCP\session_name\long\path\to\file".

I'm thinking no "scp*", no cleanup. Right?

Would it be possible to add the saved session names to the lookup? Or even tell WinSCP that a temp directory is safe to be cleaned up with a "*.*" mask?

Description: WinSCP Temporary Directory settings

wtempsett.png

Reply with quote

Advertisement

raina
Donor

Re: Temporary directory cleanup not seeing files

Ah, quite right. But could the latter part possibly be made optional? :)
I'm currently looking into scripting the launching of WinSCP so that my temp directory will be cleared if WinSCP isn't already running.

Reply with quote

martin
Site Admin
martin avatar

Re: Temporary directory cleanup not seeing files

Cannot you just uncheck the Keep temporary copies of remote files in deterministic paths, as you do not want it?

Reply with quote

raina
Donor
Joined:
Posts:
7
Location:
Finland

Re: Temporary directory cleanup not seeing files

martin wrote:

Cannot you just uncheck the Keep temporary copies of remote files in deterministic paths, as you do not want it?

Well, then the opened files all end up in their separate scp????? subdirectories and not in the same hierarchy. One thing is this doesn't feel as neat because the files' location relative to each other doesnt't reflect the server. But as a more practical matter with the paths expanded in my editor's side pane tree, opening for example three files from a server's directory takes up 24 lines of display space where as deterministic takes just 9.

comparison.png

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum