Linux: How to set a Folder Date/Time to Now? lazarus / 21-General ---------------------------------------------------------------------- QEnnay · 2025-06-14 17:49 Hi, Linux Mint + Lazarus-v4.0: all up to date I need to force a base-folder Date to Now. I have searched, I checked several AI sites that suggested using fpSetDate etc, but I cannot get it to compile. I already have sysUtils and baseUnix in the uses for other stuff, but it balks at any "fp...." stuff. How's it done? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  procedure setFolderDate(aPath : string) ;begin//   example   aPath:='/media/userName/backDrv/home/userName/';   setFolderPath(aPath); end;   Thanks ---------------------------------------------------------------------- cdbc · 2025-06-14 18:02 Hi You're looking for "Touch"  ...in FPC it's called FpUTime(): cint; It can be found through 'baseunix'  I think it'll work for directories too, by the looks of the source- code... HTH Regards Benny ---------------------------------------------------------------------- bytebites · 2025-06-14 18:12 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i filesetdate(afilename, DateTimeToFileDate(atime)) ---------------------------------------------------------------------- QEnnay · 2025-06-14 18:51 Quote from: bytebites on June 14, 2025, 08:12:05 pmCode: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i filesetdate(afilename, DateTimeToFileDate(atime)) Awesome thanks, works a treat. ---------------------------------------------------------------------- QEnnay · 2025-06-14 18:55 Quote from: cdbc on June 14, 2025, 08:02:48 pmYou're looking for "Touch"  ...in FPC it's called FpUTime(): cint; It can be found through 'baseunix'  Hi Benny, thanks, I had previously been using "touch" but as with "fpAnything" they give a "not found" error, maybe just v4.0. Bytebites offering has resolved it all.