Getting isdir() to work?

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.

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?

Also, I think this setup would allow me to put in more than 1000 palettes easily.