getYoungerFiles()

Returns all the files of a directory that has changed since a particular date.

Synopsis

dyn_string getYoungerFiles(string startDir, time startTime);

Parameters

Parameters Meaning
startDir Start directory. You can specify an absolute path or a relative path from the PROJ_PATH directory.
startTime Start time

Return value

The function returns a dyn_string with all the matching files.

Description

Returns the names of all the files from the directory (and subdirectories) "startDir" whose contents have changed since a time "startTime" in a dyn_string.

Under Windows the function getFileSize returns -1 if cyrillic characters or spaces are used in the file name/folder name.

Example

In the following example, all the files under "C:/" that have changed since 1.1.1999 will be transferred to the field ds and then outputted in the Log viewer.

main()
{
  time t;
  dyn_string ds; // field for file name
  t=makeTime(199,1,1,0,0); // starting time
  ds=getYoungerFiles("c://",t);
  DebugN(ds); // output
}

Assignment

Management of managers

Availability

UI