SC zip_list2 return

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

SC zip_list2 return

Post by jupe »

I noticed that when using the recursive flag of SC zip_list2 the return contains <tab> prefix on filenames, according to docs these should only be in the return when flags=1, eg:

select a archive and run this:

text zip_list2(, <crlf>, 2);

the filenames will have <tab> prefixes. (if nested, after folder before filename)

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

Re: SC zip_list2 return

Post by admin »

:tup: Fix comes.

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SC zip_list2 return

Post by jupe »

I noticed that when using flag=1 the return for folders has the trailing slash after the date, not after the folder name, is that correct?, eg:

XYplorer File folder 10/9/21 4:52:28 PM\

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

Re: SC zip_list2 return

Post by admin »

:tup: Fix comes.

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SC zip_list2 return

Post by jupe »

I noticed that the original reported issue of the return containing tab chars was not fixed, the issue is still visible is archives that contain nested subfolders/files.

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

Re: SC zip_list2 return

Post by admin »

Indeed, something was wrong. Fix comes. Next change log:

Code: Select all

    ! SC zip_list2: This fix from v23.50.0211 - 2022-08-28 11:15 did not really get it right.
        Returned superfluous <tab> prefixes on filenames. Fixed.
      Actually there *should* be <tab> prefixes on filenames IF the archive contains 
      folders and flags has bit 2 (Recurse folders). Otherwise the CSV columns of the 
      returned data are messed up. Fixed again.

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SC zip_list2 return

Post by jupe »

I was a bit confused by the changelog you posted, anyway I just got around to upgrading and tested the change, and it still doesn't seem right to me, shouldn't there be no tabs unless you pass flag 1. I understand the columns comment you made, but there should be no columns unless flag 1 is passed though anyway, right?.

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

Re: SC zip_list2 return

Post by admin »

You mean path and item should be just joined? I don't know, if I change that now it would break old code.

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SC zip_list2 return

Post by jupe »

OK, it doesn't matter to me, I'll just script around it.

Post Reply