[vlc-devel] [PATCH 2/3] ftp: implement readdir

Rémi Denis-Courmont remi at remlab.net
Sun May 3 19:46:21 CEST 2015


Le dimanche 03 mai 2015, 19:38:04 Thomas Guillem a écrit :
> I would like to identify the file type: file or directory.
> I wonder if it's possible without doing a "CWD psz_uri" and "CDUP" from
> here.
> "NLST -l" can give a full listing but I think that the parsing will be
> OS/server dependent.

I don't know any portable way to detect directories. Applications typically 
rely on Unix-style listings including permissions from the server.

I'm not convinced that we need to care. VLC is a media player, not a file 
manager/browser.

-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list