Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
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