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

Examples

Basic Examples  (2)

Set the FileDate for all files in a directory:

In[1]:=
Click for copyable input

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

In[2]:=
Click for copyable input
Out[2]=

Set the FileDate for all files through level 2 of the specified directory:

In[1]:=
Click for copyable input

All files in $UserBaseDirectory now have the same FileDate:

In[2]:=
Click for copyable input
Out[2]=

See Also

FileSystemMap  FileNames  Scan  MaxItems  FileNameForms  DeleteDirectory

Introduced in 2016
(11.0)