quicksearch() + file attributes?

Features wanted...
Post Reply
highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

quicksearch() + file attributes?

Post by highend »

Would it be possible for quicksearch to gather these specific file attributes

01. last modified, last accessed, created times
02. attributes (h,s,r, etc.)
03. file size

without getting slowed down (too much)?

I know I could easily use folderreport() (which can do a lot more than that) but quicksearch() is ultra-fast
and folderreport() (can be) really slow...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: quicksearch() + file attributes?

Post by admin »

Yes, would be absolutely possible.

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: quicksearch() + file attributes?

Post by highend »

Does it make sense to add a wish for it? I'm thinking of being able to create customized syncs (depending on what you'll add when two-way sync is done)...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: quicksearch() + file attributes?

Post by admin »

I would do it, but only in a fixed hard-coded format (otherwise customization options will become endless): ISO 8601 dates, |-separated fields, raw bytes file size.

General format:

Code: Select all

name|size|modified|created|accessed|attributes
Example:

Code: Select all

blue.jpg|39138|2015-11-01 21:11:00|2015-11-01 21:11:00|2015-11-01 21:11:00|----A-----I-

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: quicksearch() + file attributes?

Post by highend »

That would be totally ok for me. I'd parse it via regex anyway.

But I'd need the full path instead of only the name :)
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: quicksearch() + file attributes?

Post by admin »

OK, you get the full path for free on top of it. ;)

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: quicksearch() + file attributes?

Post by highend »

With sugar, please! And thanks for adding it :beer:
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: quicksearch() + file attributes?

Post by highend »

Cool stuff! One minor little thing...

It would be a lot easier here to separate files from folders when we enhance the item list by:
name|f/d|size|modified|created|accessed|attributes
e.g.:
R:\new folder|d|0|2015-11-01 21:11:00|2015-11-01 21:11:00|2015-11-01 21:11:00|---D--------
R:\new file.txt|f|0|2015-11-01 21:11:00|2015-11-01 21:11:00|2015-11-01 21:11:00|----A-----I-
Because files can have a filesize of 0 like folders and e.g. linux files have no dots that could
be checked for.

I know I could check for "D" in attributes but that would require more effort...

If it's not too late...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: quicksearch() + file attributes?

Post by admin »

Not too late, but there is also the "D" in attributes... it would be tautological.

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: quicksearch() + file attributes?

Post by highend »

I shouldn't edit my thread while you're writing an answer^^

But ok, I can use formatlist() to filter for files / folders if I want. I can live with that
One of my scripts helped you out? Please donate via Paypal

Post Reply