Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

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 OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (2)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]=
Introduced in 2016
(11.0)