only names with number 0 appears on file
Posted: 07 Jul 2023 07:22
Hello!
$folder = get("SelectedItemsPathNames");
$filesinside = listfolder($folder, !"*.txt", 1, <crlf>);
$files = replace($filesinside, "\", "\\");
$textfileinside = $folder . "\filenames.txt";
$textfile = replace($textfileinside, "\", "\\");
writefile($textfile, $files);
I'm writing SelectedItemsPathNames of files(in subfolder) except for .txt of selected folder.
All fine, except for the fact that only files with 0 appear on the list, anyone knows the reason why?
from what i've tested:
xas\tires03\1_normal.jpg doesn't appear
xas\tires03\normal_123.jpg doesn't appear
xas\tires03\0_normal.jpg appears
xas\tires03\0123_normal.jpg appears
xas\tires03\normal_0123.jpg appears
appear - file path written to file
doesn't appear - file path not written to file
Any ideas? Thx!
$folder = get("SelectedItemsPathNames");
$filesinside = listfolder($folder, !"*.txt", 1, <crlf>);
$files = replace($filesinside, "\", "\\");
$textfileinside = $folder . "\filenames.txt";
$textfile = replace($textfileinside, "\", "\\");
writefile($textfile, $files);
I'm writing SelectedItemsPathNames of files(in subfolder) except for .txt of selected folder.
All fine, except for the fact that only files with 0 appear on the list, anyone knows the reason why?
from what i've tested:
xas\tires03\1_normal.jpg doesn't appear
xas\tires03\normal_123.jpg doesn't appear
xas\tires03\0_normal.jpg appears
xas\tires03\0123_normal.jpg appears
xas\tires03\normal_0123.jpg appears
appear - file path written to file
doesn't appear - file path not written to file
Any ideas? Thx!