FileSystemScan[f,root]
evaluates f on all files contained in root.
FileSystemScan[f,root,n]
restricts the operation to directories at level n.


FileSystemScan
FileSystemScan[f,root]
evaluates f on all files contained in root.
FileSystemScan[f,root,n]
restricts the operation to directories at level n.
Details and Options

-
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
Examples
Basic Examples (2)
Set the FileDate for all files in a directory:
The files in the specified directory now have a current modification date:
Set the FileDate for all files through level 2 of the specified directory:
All files in $UserBaseDirectory now have the same FileDate:
Related Guides
Related Workflows
- Analyze Files in a Directory ▪
- Operate on Files in a Directory
Text
Wolfram Research (2016), FileSystemScan, Wolfram Language function, https://reference.wolfram.com/language/ref/FileSystemScan.html (updated 2019).
CMS
Wolfram Language. 2016. "FileSystemScan." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/FileSystemScan.html.
APA
Wolfram Language. (2016). FileSystemScan. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileSystemScan.html
BibTeX
@misc{reference.wolfram_2025_filesystemscan, author="Wolfram Research", title="{FileSystemScan}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/FileSystemScan.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_filesystemscan, organization={Wolfram Research}, title={FileSystemScan}, year={2019}, url={https://reference.wolfram.com/language/ref/FileSystemScan.html}, note=[Accessed: 15-August-2025]}