kxylxp / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

Request: cat --length=0 returns a unique value if target is a directory #149

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

if we have a directory on a drive

cat --length=0 ()/xxx

returns ?=0x4 and @retval=0 always on both NTFS and FAT32 volumes

If the target is a folder could ? return a different value?
This means we can check if the result of ls | call :checkfl=   is a file or 
folder.

currently there is no way to tell if it is a file or a folder

e.g. we could have a zero length file with no extension - how do we tell if it 
is a file or a folder?

Original issue reported on code.google.com by Steve6375 on 9 Jul 2013 at 6:01

GoogleCodeExporter commented 8 years ago
Any thoughts on this?
The problem is if we have a 0 length file called F1 and a folder called F2, how 
can we tell which one is a file and which one is a folder?

cat and ls return the same values for both?

Original comment by Steve6375 on 2 Feb 2014 at 11:50