Page 1 of 2

ShadowCats [beta]

Posted: 04 Apr 2015 17:03
by bdeshi
BETA | WIP

ShadowCats: Shadow Catalogs
Catalog folders and browse them even when the source is unavailable.

A xy-native effort of creating zero-byte (or actual-size) catalogs of active or inactive locations.
file time, attribs, and sizes can be recorded. (NTFS folder compression tech is utilized to minimize storage-eating.)
Inspired by http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=8107, necessitated by http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=13656


This is in beta stage; still a long way to go for perfection. (Doesn't even have a cool icon yet!)
I just wanted to put this out [t]here before it disappears, forgotten, into the darkness of <xyscripts>\closet (I really have that!) because the name sounded really too cool to be postponed! (Also to Test and Suggest!)

ATM, it creates a full-fledged folder hierarchy. There's a possibility to make this similar to paperfolders, ie ShadowCats are stored as plaintext and items generated at "showtime". But this tends to cause slowdowns in opening, although there are alleyways to go around this (cache folders once created for a time or until shadowcat text file is updated).
Would this be a better choice of storage?

MenuItems:
* Create ShadowCat: create a shadowcat of a picked location, current path selected by default
* Open ShadowCats: open one or more saved ShadowCats in special tabs
* Kill Shadowcats: delete one or more saved ShadowCats
* Convert to ShadowCat: Create a ShadowCat from current path. Like "Toggle paper folder", but for ShadowCats
* Open this ShadowCat: open selected ShadowCat in a special shadowcat tab (indicated by icon and sc: prefix, and homezonelocked) .
* Configure: right now this opens the ini file with a popup description (yeah, lazy)

Any bugs? Anything broken? Anything missing? Any suggestions?

ShadowCat.xys
[/size]changelog:

Code: Select all

v1.2b1
*  changed name, ShadowCats --to-> ShadowCat, config to shadowcat.ini, default path to <xydata>\shadowcat
!  fix syntax errors
+  menu item: convert current item to shadowcat
+  menu item: open selected shadowcats
~  still beta, still work in progress.
v1.1
!  folder mod.date may not be retained when children-items are created later
v1
init
[/size]
ShadowCats.xys
ShadowCats.xys
[/size]


TODO:
* test
* fix: folder mod.date may not be retained when children-items are created later
* icon(s) . Anybody have nice icons for me?
* alternative plaintext storage
* metadata for shadowcats
* cleanup
* publish

Re: ShadowCats [beta]

Posted: 04 Apr 2015 19:28
by Stef123
Don't know yet how I might use it, but something about it seems promising.

Using the current path does not work, it always brings up a dialog to make me pick one.
I wonder, could it be made to optionally get the folder structure only? Without the files?

Re: ShadowCats [beta]

Posted: 04 Apr 2015 19:41
by bdeshi
:tup:
Stef123 wrote:Using the current path does not work, it always brings up a dialog to make me pick one.
Using "Create ShadowCat" ? isn't the current path is selected in the folder picker?
Stef123 wrote:I wonder, could it be made to optionally get the folder structure only? Without the files?
Copy a folder then Edit > Paste Special > Paste folder structure. :ugeek:

[split to http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=13749 ]

Re: ShadowCats [beta]

Posted: 18 Apr 2015 19:59
by bdeshi
update. Fixed this: * fix: folder mod.date may not be retained when children-items are created later

Re: ShadowCats [beta]

Posted: 18 Apr 2015 20:03
by Stef123
Thanks. Not using mod date, but good to know I could rely on it, should I wish to do so.

Re: ShadowCats [beta]

Posted: 12 Oct 2017 14:36
by karimmaster101
I got this error message

Code: Select all

TimeStamp failed.
timestamp
cma
----A-------
C:\Myxyplorercatalog\My Files_2017-10-12----A-------
Any solution?

Re: ShadowCats [beta]

Posted: 12 Oct 2017 15:06
by highend
Replace:

Code: Select all

  $tpl = '{Fullname}'    . '|' . '{Dir d|f|d}'                . '|' . 
          ($saveattr == 1) ?      ('{Attr}')          : ('')  . '|' . 
          ($savesize == 1) ? ('{Dir -|{Size RAW}|-}') : ('')  . '|'   ;
with:

Code: Select all

$tpl = '{Fullname}|{Dir d|f|d}|' . (($saveattr == 1) ? '{Attr}' : '') . '|' . (($savesize == 1) ? '{Dir -|{Size RAW}|-}' : '') . '|';

Re: ShadowCats [beta]

Posted: 12 Oct 2017 16:10
by karimmaster101
Many thanks! it worked :tup:

Re: ShadowCats [beta]

Posted: 12 Oct 2017 20:16
by bdeshi
I have a newer version on my drive, which among misc changes includes those fixed ternary `() ? :` expressions. Uploaded as 1.2b1. Still beta, still a work-in-progress.

Re: ShadowCats [beta]

Posted: 17 Feb 2018 12:33
by chumbo
Hi,
I tried the script but regardless what's selected (folders or files), I keep getting this error:

Image

Re: ShadowCats [beta]

Posted: 17 Feb 2018 12:52
by jupe
I don't think you are running the script properly. Do you see a menu exactly like this pop up including the icons?
sc.png
If you don't, go to the folder that you download the ShadowCats.xys to, select it, and then

Scripting | Load Selected Script File

then once you click on Create ShadowCat it will popup a dialog to pick the location you want to create a ShadowCat for.

Re: ShadowCats [beta]

Posted: 17 Feb 2018 13:14
by chumbo
Nope, not like that. There is a very good chance I'm not running it properly because I'm a real beginner in these matters.
I had actually started a thread in the 'Wishes' section and was redirected here by highend: viewtopic.php?f=5&t=18488&p=156199#p156199

I had started by downloading the ShadowCat.xys v1.2b1 then from the Scripting menu did 'Load Script FIle...' but that did nothing at all?

Then highend posted a code you can see in the thread I linked to, and that got me this menu:

Image

Then I selected a folder in open tab and run 1st command in the menu 'Create ShadowCat:....." and that's how I got the error I posted.

Re: ShadowCats [beta]

Posted: 17 Feb 2018 13:17
by chumbo
Well, now it works! :biggrin:
I don't what I did different this time but it's running as we speak!! Thanks :-)

Re: ShadowCats [beta]

Posted: 17 Feb 2018 16:10
by Turion
Just wanted to say thanks to SammaySarkar for this script and to chumbo for posting his wish which led me to it.
Looks great on my toolbar. :appl:
toolbar.png

Re: ShadowCats [beta]

Posted: 19 Feb 2018 20:20
by bdeshi
:tup: Nice!

Let me know of any bugs/problems/issues.

@chumbo Sorry I couldn't help earlier.