Gave simple -ls an implemention with minimal memory consumption

This commit is contained in:
2007-10-31 16:55:55 +00:00
parent 43ffc8f19f
commit 44a3b060ec
4 changed files with 80 additions and 42 deletions

View File

@@ -59,6 +59,14 @@ int Xorriso_rmi(struct XorrisO *xorriso, char *path, int flag);
int Xorriso_ls_filev(struct XorrisO *xorriso, int filec, char **filev,
int flag);
/* This function needs less buffer memory than Xorriso_ls_filev() but cannot
perform structured pattern matching.
@param flag bit0= long format
bit1= only check for directory existence
bit2= do not apply search pattern but accept any file
*/
int Xorriso_ls(struct XorrisO *xorriso, int flag);
/* @param eff_path returns resulting effective path.
Must provide at least SfileadrL bytes of storage.
@param flag bit0= do not produce problem events (unless faulty path format)