Fonction Scilab
eng - fr


return_master_list - retourne une liste qui contient tous les répertoires et noms de fichiers d'un répertoire spécifié

Librairie

Séquence d'appel

tt_ml = return_master_list(path)

Paramètres

Description

Add here a paragraph of the function description. Other paragraph can be added

Add here a paragraph of the function description

Exemple

Add here scilab instructions and comments

Contenu du fichier


//return_master list
//fonction qui examine l'intégralité d'un répertoire
//et qui retourne ses noms de repertoires et fichiers
//dans une liste scilab.
//Entrée : path un vecteur de noms de répertoire à éxaminer
//         de pref en chemin absolu et de taille 1x1
//Sortie tt_ml : liste principale
// tt_ml()()()
//      | | |
//      | | |
//      | | |--> 1 : nom du répertoire
//      | |      2 : liste des fichiers
//      | |      3 : liste des répertoires sous-adjacents
//      | |
//      | |--> indice du n° répertoire
//      |
//      |--> indice du niveau d'arborescence
function tt_ml=return_master_list(path)

 if argn(2)==0 | ~exists('path') then
  path=MODNUM
 elseif typeof(path)<>"string" then
  path=MODNUM
 elseif path=="" then
  path=MODNUM
 end

 printf("Search directories and files in %s... ",path);
 tt_ml=list();k=0;
 while path<>[]
   k=k+1;
  [tt,path]=return_single_list(path);
  tt_ml(k)=tt;
 end
 printf("Done\n");
endfunction

 

Fonction(s) utilisée(s)

Add here the used function name and references

Auteurs

enter here the author name Add here the author references