I have an alias that processes files versus directories differently that was originally written for 4NT v4 ... just seeing the light of day again.
Back then, @FILESIZE returned -1 for directories, but it appears that today it returns 0 for them. No sweat -- things change.
What is the most efficient way to tell if a string represents a file versus a directory?
I am looking at possibly using @FOLDERS, as in:
if %@folders["%i"\..] GT 0 [it's a folder, do folder stuff]
if %@folders["%i"\..] EQ 0 [it's a file, do file stuff]
Is there a better way?
Back then, @FILESIZE returned -1 for directories, but it appears that today it returns 0 for them. No sweat -- things change.
What is the most efficient way to tell if a string represents a file versus a directory?
I am looking at possibly using @FOLDERS, as in:
if %@folders["%i"\..] GT 0 [it's a folder, do folder stuff]
if %@folders["%i"\..] EQ 0 [it's a file, do file stuff]
Is there a better way?