[WFX] VirtualPanel: Temporary panel for TC
Moderators: white, Hacker, petermad, Stefan2
is there an option to silently remove those not found physical files from VP list?
would be great to have this option in the settings check list.
" List only found files " or similar.
so instead of show Removed file icon it will not show it at all.
i mostly use VirtualPanel2 to sync dirs and some physical files are deleted infact many.
i hope this is possible MVV, otherwise maybe you have a magical script that does same job with out reading the dirs-files again.
respect.
would be great to have this option in the settings check list.
" List only found files " or similar.
so instead of show Removed file icon it will not show it at all.
i mostly use VirtualPanel2 to sync dirs and some physical files are deleted infact many.
i hope this is possible MVV, otherwise maybe you have a magical script that does same job with out reading the dirs-files again.
respect.
Currently validity check for icon is in FsExtractCustomIconW function which is completely independent from FsFindFirstW so it will require to do additional check per file to filter invalid items.
Actually you can use <ifcond command and its valid field in order to remove invalid items.
E.g. this command line command will show a message for every invalid file in current folder (I check if files are invalid and if they are not scripts):
This one will silently remove all invalid items:
You can write recursive script that will browse all folders and use similar command to remove invalid items. Example of recursive script is in the Readme file. You can even insert such script into >Autoexec script to get it automatically executed on VP loading in order to silently remove invalid items. I think something like this should work:
Note that last version allows to use "|>*" mask to exclude script files instead of ifcond's script field (but I think it won't hurt to check both conditions).
Actually you can use <ifcond command and its valid field in order to remove invalid items.
E.g. this command line command will show a message for every invalid file in current folder (I check if files are invalid and if they are not scripts):
Code: Select all
<for %f . * { <ifcond {!valid && !script @ %f} { <ifok "%f" {} } }
Code: Select all
<for %f . * { <ifcond {!valid && !script @ %f} { <del "%f" } }
Code: Select all
<add \>rdelbad { <silent <for %%f . "|>*" { <ifcond { !valid && !script @ %%f } { <del "%%f" } } <for /d! %%d . * { <cd "%%d" <exec \>rdelbad } }
Code: Select all
<add \>Autoexec { <cd \ <exec \>rdelbad }
Just be careful, it may delete some items that you may want to keep. You can call >rdelbad from >Autoexec multiple times from different directories (using pairs of <cd and <exec commands) instead of calling it once for entire VP contents. And it is a good practice to save and backup your list before experiments.
I've released the latest version.
Virtual Panel 2.0.6.1262 (changes since last released 2.0.5.1228):
+ <convert command
+ multiple include/exclude masks support in <for, <export, <save commands
+ flag 'e' for <save, <export commands
* <save command is not recursive by default now (use 'r' flag)
* null characters in ANSI exported lists
* correct icons for inaccessible files (like pagefile.sys)
* explorer: paths for subfolders of links to physical folders haven't displayed in title
I've released the latest version.
Virtual Panel 2.0.6.1262 (changes since last released 2.0.5.1228):
+ <convert command
+ multiple include/exclude masks support in <for, <export, <save commands
+ flag 'e' for <save, <export commands
* <save command is not recursive by default now (use 'r' flag)
* null characters in ANSI exported lists
* correct icons for inaccessible files (like pagefile.sys)
* explorer: paths for subfolders of links to physical folders haven't displayed in title
MVV
i did delete some files and i got a bit frustrated since i used real files instead of test one... my mistake ,,, i have backups : ) thank allah for that.
i will test again the update feature, yes i need more than remove deleted files, i also need modified.
i tried to script but found it needs practice. i work harder and if i fail i will nag again
i did delete some files and i got a bit frustrated since i used real files instead of test one... my mistake ,,, i have backups : ) thank allah for that.
i will test again the update feature, yes i need more than remove deleted files, i also need modified.
i tried to script but found it needs practice. i work harder and if i fail i will nag again
Please provide some examples, don't understand how you get 'em with such plugin, links within virtual filesystem are not supported. If you're talking about junctions/symlinks through a link to physical folder -- I don't handle them at all, so it is TC who decides when to stop.billiebub wrote:How do you handle circular references? I suppose you keep recursively iterating till TC decides to take a vacation.
As I see, TC itself doesn't allow to enter 33rd subfolder 'tools' so it stops there. BTW FS plugins don't get folder path to be copied, they only receive commands to create new dirs and to add files, there is no command to copy entire folder with its contents.
Anyway it is on the user who creates such links. It is impossible to predict all things that users may invent. Especially things that are completely useless.
Anyway it is on the user who creates such links. It is impossible to predict all things that users may invent. Especially things that are completely useless.
that's like saying the use of buffer overflows is completely useless where hackers see it a way to crash a system, escalate privileges, execute arbitrary code, etc.
Coming from a security profession, I would really do a check limit on the number of circular referenced directories to make sure I stay within boundaries. Other than that, keep up the good work
Coming from a security profession, I would really do a check limit on the number of circular referenced directories to make sure I stay within boundaries. Other than that, keep up the good work
Thanks for the update! The new <convert command works well to replace postprocessing <save's output to extract real paths.
- Russian: no mention r flag for <save
- English: no mention e and r flags for <save; no mention e flag for <export.
Readme describes <convert as:
I seems the readme file is incomplete:MVV wrote: I've released the latest version. [...]
Virtual Panel 2.0.6.1262 (changes since last released 2.0.5.1228): [...]
+ flag 'e' for <save, <export commands
* <save command is not recursive by default now (use 'r' flag)
[...]
- Russian: no mention r flag for <save
- English: no mention e and r flags for <save; no mention e flag for <export.
Readme describes <convert as:
what is the purpose of [<virtual_path>] ?convert <source_filelist_path> <filelist_path> [<virtual_path>]