Recent

Author Topic: Indy FTP server question about SetCreationTime,SetModifiedTime,SiteUTIME events  (Read 1767 times)

snorkel

  • Hero Member
  • *****
  • Posts: 817
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.

***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

lucamar

  • Hero Member
  • *****
  • Posts: 4219
calls like:
Windows.SetFileTime
Windows.GetFileTime
windows.DosDateTimeToFileTime

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

Please, consult the documentation. For example:
  • Windows.SetFileTime <-> SysUtils.FileSetDate
  • Windows.GetFileTime <-> SysUtils.FileAge or SysUtils.FileGetDate
etc.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018