Forum > Networking and Web Programming

Indy FTP server question about SetCreationTime,SetModifiedTime,SiteUTIME events

(1/1)

snorkel:
Hi,
I have a windows Indy FTP server and I am trying to get it to run on Linux as well and the 3 events mentioned above have a
ton of windows API calls mostly involving date time stuff and calls to the win api createfile to get a handle.

Just wondering if anyone has a Indy FTP server that runs on linux and is setting those events even needed? i.e. will the default ones suffice?

calls like:
Windows.SetFileTime
Windows.GetFileTime
windows.DosDateTimeToFileTime

I am having trouble finding FPC cross platform alternatives for these functions.

lucamar:

--- Quote from: snorkel on January 04, 2019, 03:53:06 pm ---calls like:
Windows.SetFileTime
Windows.GetFileTime
windows.DosDateTimeToFileTime

I am having trouble finding FPC cross platform alternatives for these functions.
--- End quote ---

Please, consult the documentation. For example:

* Windows.SetFileTime <-> SysUtils.FileSetDate
* Windows.GetFileTime <-> SysUtils.FileAge or SysUtils.FileGetDateetc.

Navigation

[0] Message Index

Go to full version