Export to GitHub

grub4dos-chenall - issue #149

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


Posted on Jul 9, 2013 by Happy Kangaroo

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?

Comment #1

Posted on Feb 2, 2014 by Happy Kangaroo

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?

Status: New

Labels:
Type-Defect Priority-Medium