Hi,
I'm puzzled by the detection of deleted files by JSL (JMP 16.0.0 on a Mac Big Sur 11.6.8). I created a folder containing 8 files and ran the following script:
Names Default To Here( 1 );
TargetDir = Pick Directory();
TargetFiles = Files In Directory( TargetDir );
N_TargetFiles = N items(TargetFiles);
show(N_TargetFiles);
For( i = 1, i <= N Items( TargetFiles ), i++,
sample = Left( TargetFiles[i], Contains( TargetFiles[i], "." ) - 1 );
Show( sample );
);
The Log indicates 8 files were detected (see attached, first run). Then I deleted one file in the folder and ran the script again. The Log still indicates 8 files are present and it includes a "" to indicate that one was deleted (see attached, second run). If I start over with 8 files and delete 6, 3 are detected, one of which is "", so maybe "" indicates a temporary file indicating files were deleted.
Is this a known behavior of JSL/JMP on a Mac or with Big Sur? How can I avoid including the "" item in the count and on the list?
Thanks for your input.
