Paperfolder script function not removing duplicates

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
SevenEyedSasquatch
Posts: 2
Joined: 12 Dec 2023 12:17

Paperfolder script function not removing duplicates

Post by SevenEyedSasquatch »

I've written a script that uses the paperfolder( ) function. The documentation says "When adding items the function takes care that no duplicates are created." That part isn't working for me. To make sure that it's not a problem in my script, I verified it with a simple one-line script in the Run Script command.

This is the script I entered in the text box in the Run Script command:
::paperfolder("test1", "C:\3-d<crlf>C:\accel<crlf>C:\audio<crlf>C:\accel<crlf>C:\3-d<crlf>C:\3-d<crlf>C:\3-d<crlf>C:\3-d<crlf>C:\3-d<crlf>", "<crlf>")

That creates a paper folder named "test1", and passes these folder names to it:
C:\3-d
C:\accel
C:\audio
C:\accel
C:\3-d
C:\3-d
C:\3-d
C:\3-d
C:\3-d

If the function removes duplicates, it should create a file named test1.txt, containing this:
C:\3-d
C:\accel
C:\audio


but instead, test1.txt contains this:
C:\3-d
C:\accel
C:\audio
C:\accel
C:\3-d
C:\3-d
C:\3-d
C:\3-d
C:\3-d


That shows that it did not remove duplicate items.

Did I do something wrong?

I'm using XYplorer 26.00.0300.

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

Re: Paperfolder script function not removing duplicates

Post by highend »

From the function description I'd also consider this as a bug (which would still be present in the current beta)...
One of my scripts helped you out? Please donate via Paypal

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

Re: Paperfolder script function not removing duplicates

Post by admin »

Yep, :bug: . Fixed in next beta.

Post Reply