Expand description

Contains the implementation of a hierarchical list of files and directories to be used for the Composite design pattern example.

Constants

Functions

  • Construct a string containing the current time expressed as a timestamp in the form “mm/dd/yyy HH:MM:SS AM|PM”.
  • Construct a file/directory tree with a predefined set of files and directories. Out of memory errors will crash the program with a panic.
  • Return a FileDirEntry object representing the specified file “path” in an internal list of data entries that is organized in a file/directory structure. The root and returned object are reference-counted smart pointers to a reference cell object containing the dynamic pointer to the FileDirEntry trait.