Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
FileTools[ListDirectory] - display the contents of a directory
Calling Sequence
ListDirectory(dir, opt1, opt2, ...)
Parameters
dir
-
path to the directory to be displayed
opt1, opt2, ...
(optional) argument of the form option or option=value where option is one of all or returnonly
Description
The ListDirectory(dir) calling sequence returns the contents of the directory dir as a list.
ListDirectory accepts two optional arguments: all and returnonly.
all or all = true/false
By default ListDirectory does not display filenames that begin with ".". Specifying the all option makes ListDirectory consider these files as well.
returnonly = string
The string argument is used to select elements from the list of filenames. Only the filenames that match the pattern specified in the string are returned. Patterns of the form defined by StringTools[WildcardMatch] are used.
If dir does not exist, ListDirectory generates an error.
If dir is not a directory, ListDirectory generates an error.
For information on filenames, see file.
Examples
Error, (in listdir) directory does not exist
Error, (in isdir) file or directory does not exist
See Also
file, FileTools[Binary][Open], FileTools[IsDirectory], FileTools[Text][Open], IO_errors, StringTools[WildcardMatch]
Download Help Document