[U-Boot] [PATCH v2 5/8] FAT: Fix file contents listed as directory

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Mon Sep 3 16:08:02 CEST 2012


Dear Wolfgang Denk,

On Sunday, September 2, 2012 5:21:15 PM, Wolfgang Denk wrote:
> Dear Benoît Thébaudeau,
> 
> In message
> <2017658963.332562.1342790429735.JavaMail.root at advansee.com> you
> wrote:
> > With:
> > fatls mmc 0 /dir/file
> > dir: regular directory
> > file: regular file
> >
> > The previous code read the contents of file as if it were directory
> > entries to
> > list. This patch refuses to list file contents as if it were a
> > folder.
> 
> But this means that "fatls" on a plain file stops working?
> 
> This doesn't make sense to me.  Or what am I missing?

This already did not work before, because "fatls" is supposed to support only
directories:

$ help fatls
fatls - list files in a directory (default /)

Usage:
fatls <interface> <dev[:part]> [directory]
    - list files from 'dev' on 'interface' in a 'directory'

Best regards,
Benoît


More information about the U-Boot mailing list