dircrd

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - File handling
Introduced first in SolidGeometry 5.4, Creation date: 2024-06-02, Last change: 2025-08-18

same as dir but returns the creation date instead of the modification date

Description

Too slow for practical use

See Also: , fcreationdate

Example Illustration

 missing image of dircrd()

Syntax

xx=dircrd([])

Output Parameter

xx: result if dir

Examples


dir db*.m
dircrd db*.m
ans.date




Copyright 2024-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, dircrd, is designed to list directory contents similar to the dir function, but it returns the creation date of files instead of the modification date.

Input Parameters

Output

Algorithm Steps

  1. Call the dir function with the input arguments to get a list of files and directories matching the specified pattern. Store the result in xx.
  2. Determine the number of elements in xx using numel and store it in nn.
  3. Iterate over each element in xx using a for-loop from 1 to nn:

The function is noted to be too slow for practical use as of June 2024, and it was first introduced in SolidGeometry version 5.4.

Algorithm explaination created using ChatGPT on 2025-08-18 22:29. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21