({{, (RefLink[FileSystemScan, paclet:ref/FileSystemScan])[f,root]
evaluates f on all files contained in root.}, {, (RefLink[FileSystemScan, paclet:ref/FileSystemScan])[f,root,n]
restricts the operation to directories at level n.}})

OpenersNotesSection(Spacer1)Details and Options

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Set the (RefLink[FileDate, paclet:ref/FileDate]) for all files in a directory:

FileSystemScan[SetFileDate,FileNameJoin[{$UserBaseDirectory,"Kernel"}]]

The files in the specified directory now have a current modification date:

FileSystemMap[FileDate,FileNameJoin[{$UserBaseDirectory,"Kernel"}]]

Set the (RefLink[FileDate, paclet:ref/FileDate]) for all files through level 2 of the specified directory:

FileSystemScan[SetFileDate,$UserBaseDirectory,2]

All files in (RefLink[$UserBaseDirectory, paclet:ref/$UserBaseDirectory]) now have the same (RefLink[FileDate, paclet:ref/FileDate]):

FileSystemMap[FileDate,$UserBaseDirectory,2,1]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[FileSystemMap, paclet:ref/FileSystemMap])  ▪  (RefLink[FileNames, paclet:ref/FileNames])  ▪  (RefLink[Scan, paclet:ref/Scan])  ▪  (RefLink[FileConvert, paclet:ref/FileConvert])  ▪  (RefLink[MaxItems, paclet:ref/MaxItems])  ▪  (RefLink[FileNameForms, paclet:ref/FileNameForms])  ▪  (RefLink[DeleteDirectory, paclet:ref/DeleteDirectory])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[File Operations, paclet:guide/FileOperations])}, {▪(RefLinkPlain[Parallel Computing, paclet:guide/ParallelComputing])}})}})