FR : Additional properties for `TFolder` object

Hello!

At present the object TFile has various important properties such at mtime, ctime, etc. I would like to request if we can get the same statistics properties for object of types TFolder as well.

Now, talking about only the two properties mtime and ctime, these will be specific to the “folder”. But I would also like to propose one more property child-mtime. This property will simply provide the latest modified time of any of the chidren or grand-children or grand-grand-children, so on of the folder.

Current solution involves iterating over all the children and grand-children of the folder and finding the latest modified time, but if Obsidian can provide this directly that will save this iterations, which can become very long some times.

Whereas, for Obsidian it will be easier to update this single property of all the parents and grand-parents folder of the currently modified file.

Still I am not sure, if there could be a better solution to this, as adding this property to the TFolder object and updating it so many times, can also be very costly operation.

Anyways, other two properties mentioned above, mtime and ctime of the specific folder will be very helpful.

1 Like