What’s wrong with this code? Directory exists, but executing this tells me it is false.
+pal:
l[] {
l[] {
path=${_path_rc}gmic_community_pals
check isdir('$path')
}
}
What I do plan is to export in that folder as part of the redesign of +pal
On Windows, file or folder paths often contain backslashes \ , and a backslash in a string is used to escape some character in order to produce a specific binary code (typically \n = 10).
Try using '{/$path}' instead of '$path' to force backslashs to appear in the string, as they are in $path.
David_Tschumperle:
{/$path}
Actually, never mind about the earlier message, it finally works!
Do I need to do something different for Linux/Mac?
No, on Linux/Mac, there are usually no backslashes in filenames. And the '{/$path}' does the trick in any case.
Thank you, I changed up my +pal code to fix error and made it a little faster too after you build palettes on exported files.
@prawnsushi @afre @David_Tschumperle , can one of you confirm that my change work on Linux?
committed 06:09PM - 03 Mar 26 UTC
1. Remove remove_copymark code that was causing error.
2. Faster palette loading… time. Now, 1 ms compared to previous 5 ms. In most case, you don't need duplicate inputs, but that might be addressed later.
Also, I think this setup would allow me to put in more than 1000 palettes easily.