gives an association whose keys are the names of files in root, and whose values are the results of applying f to the full names of these files.
gives a nested association in which subdirectories down to level n are represented by an association.
gives a nested association including files in subdirectories from level m down through n.
combines levels to give a nested output association with r levels.
Details and Options
- The following options can be given:
IncludeDirectories False whether to return f[directory] FileNameForms All include files with names of the specified forms MaxItems Infinity maximum items to include from a directory
- FileNameForms will accept any forms specification allowed in the first argument of FileNames.
Examplesopen allclose all
Basic Examples (3)
By specifying FileNameForms->patt, function application will be restricted to only those files that match the specified pattern:
By specifying MaxItems -> n, f will be applied to at most n items within each directory:
Wolfram Research (2016), FileSystemMap, Wolfram Language function, https://reference.wolfram.com/language/ref/FileSystemMap.html (updated 2019).
Wolfram Language. 2016. "FileSystemMap." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/FileSystemMap.html.
Wolfram Language. (2016). FileSystemMap. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileSystemMap.html