I am currently using the ‘Human’ extension within Grasshopper, and I’m wondering if there is a specific component or method within this extension that allows me to retrieve the last editing date of a file in a directory. I’m looking for a way to obtain the date when a file was last modified or edited directly in Grasshopper. Any suggestions or insights would be greatly appreciated.
Hi Maxime, welcome to this forum.
I don’t know Human plugin but for what you ask you can do a “one-liner” with c# script:
file last edit date.gh (3.5 KB)
First c# script is:
path = this.GrasshopperDocument.FilePath;
second is:
date = System.IO.File.GetLastWriteTime(path);
2 Likes
Thank you for the quick response ! This should do the job! thnx