Michaël Van Canneyt
fead1ce818
* Fix compilation
2023-01-31 19:39:30 +01:00
Michaël Van Canneyt
c5af4c420e
* Hopefully fixed GetFileStamps/FileGetDateTimeInfo
2023-01-31 19:05:48 +01:00
Pierre Muller
b95bfd07d9
Fix sysutils unit compilation failure for wasm32-wasi wince and possibly more targets
2023-01-27 14:42:05 +00:00
Michael Van Canneyt
d1b2fe1659
* Date/Time info for files (Delphi compatibility)
2023-01-21 13:45:04 +01:00
Michael Van Canneyt
32884082e3
* Checks for directory and special directories
2023-01-19 12:21:56 +01:00
florian
c1f85ac3a1
+ initial implementation of path dependent IsFileNameCaseSensitive/IsFileNameCasePreserving functions for darwin
...
git-svn-id: trunk@49164 -
2021-04-10 13:29:59 +00:00
ondrej
e34e4b452a
* FileSetDate linux compilation
...
git-svn-id: trunk@47399 -
2020-11-12 14:41:43 +00:00
ondrej
8ce015535a
* FileSetDate with TDateTime and UTC for file names
...
git-svn-id: trunk@47398 -
2020-11-12 14:36:12 +00:00
ondrej
3ea339400e
* FileGetDate, FileSetDate linux compilation
...
git-svn-id: trunk@47397 -
2020-11-12 13:55:01 +00:00
ondrej
d899c9fca4
* FileGetDate, FileSetDate with TDateTime and UTC
...
git-svn-id: trunk@47396 -
2020-11-12 13:36:39 +00:00
ondrej
33fe3f3ede
TSearchRec.GetTimeStamp: fix ifdefs
...
git-svn-id: trunk@47395 -
2020-11-12 12:17:46 +00:00
ondrej
b51729dac5
File datetime UTC support
...
git-svn-id: trunk@47210 -
2020-10-26 20:39:21 +00:00
ondrej
34d3429e43
More precise FileAge
...
git-svn-id: trunk@47203 -
2020-10-26 09:15:26 +00:00
michael
722e8d94cd
* Error when seek fails
...
git-svn-id: trunk@47056 -
2020-10-06 08:09:50 +00:00
michael
d5cbe6809b
* Add GetFileContents and GetFileAsString
...
git-svn-id: trunk@47055 -
2020-10-06 07:59:09 +00:00
florian
69956cd97a
* fix compilation on several OSes after r44010
...
git-svn-id: trunk@44013 -
2020-01-21 21:50:37 +00:00
florian
01302bc47d
* subroutines working with an OS dependend time stamp use an int64 now, so the 2038 problem
...
on unixes can be tackled
git-svn-id: trunk@44010 -
2020-01-21 20:59:20 +00:00
svenbarth
f46b8539d0
* implement FileSymLinkGetTarget for *nix systems
...
git-svn-id: trunk@43113 -
2019-10-03 12:07:33 +00:00
svenbarth
b289805a91
* correctly copy Size and Attr values when converting from one T*SymLinkRec to the other
...
git-svn-id: trunk@43108 -
2019-10-03 12:07:13 +00:00
svenbarth
3d585db43d
* fix for Mantis #35906 : use more accurate modified time from the FindData on Windows for the Timestamp
...
git-svn-id: trunk@42559 -
2019-08-02 13:16:17 +00:00
svenbarth
e110d90127
+ implement FileGetSymLinkTarget() based on patch by Serge Anvarov in Mantis #32370
...
git-svn-id: trunk@39671 -
2018-08-24 15:34:04 +00:00
svenbarth
09e5f463dc
+ add Delphi-compatible FileGetSymLinkTarget functions to all platforms (currently returns False on all platforms); this also includes TSymLinkRec variants for both RawByteString and UnicodeString
...
git-svn-id: trunk@39669 -
2018-08-24 15:33:45 +00:00
svenbarth
92dcdd8b5b
+ add Delphi compatible FollowLink parameter (default is True) to FileExists and DirectoryExists; support for it is up to each target
...
git-svn-id: trunk@39668 -
2018-08-24 15:33:09 +00:00
marco
b6824290fc
* initial fileflush, mantis #15824
...
git-svn-id: trunk@37135 -
2017-09-03 16:41:32 +00:00
michael
547f08e6ea
* Add TimeStamp property to TSearchRec (reworked patch from Ondrej Pokorny, bug ID #32165 )
...
git-svn-id: trunk@36750 -
2017-07-20 07:35:51 +00:00
nickysn
f5c1751be5
+ added a define FINDHANDLE_IS_POINTER that indicates that on the current
...
platform SysUtils.TSearchRec.FileHandle is a Pointer, instead of THandle.
I didn't introduce a TFindHandle type, because I didn't want to add yet
another publicly visible type in the SysUtils interface.
git-svn-id: trunk@28449 -
2014-08-18 21:20:07 +00:00
Jonas Maebe
8fe7d82db7
* changed type of TAbstractSearchRec.name_do_not_touch from untyped pointer
...
into rawbytestring because otherwise -gt can overwrite it
- removed hack from r25944 in morphos/sysutils.pp that worked around this
problem
git-svn-id: trunk@25952 -
2013-11-06 13:17:06 +00:00
Jonas Maebe
65ecd1273d
* removed warning when GetEnvironmentVariable() does not return a
...
a unicodestring
git-svn-id: branches/cpstrrtl@25305 -
2013-08-19 22:04:36 +00:00
Jonas Maebe
af3f12f60c
* rawbytestring/unicodestring versions of findfirst/findnext/findclose
...
o these routines are now generic wrappers in filutil.inc, and call
the platform-dependent internalfindfirst/next/close routines
o on unix, the fnmatch routine got proper support for UTF-8 matching
(e.g., it won't match a partial UTF-8 code point to a "?" wildcard)
o for NativeNT, a similar (untested) UTF-16 version has been added
+ test for the above
* rawbytestring/unicodestring versions of fileage
git-svn-id: branches/cpstrrtl@25302 -
2013-08-19 22:04:25 +00:00
Jonas Maebe
26b2149ced
* converted the following sysutils routines to unicodestring and
...
rawbytestring: FileExists, DirectoryExists, FileSetDate, FileGetAttr,
FileSetAttr, DeleteFile, RenameFile, FileSearch, ExeSearch,
FileIsReadOnly
git-svn-id: branches/cpstrrtl@25078 -
2013-07-09 19:01:45 +00:00
Jonas Maebe
95a877c7e5
* moved GetFileHandle() from fina.inc to filutil.inc because fina.inc
...
will be included twice using different string types (and those two
routines don't have a string argument, so this would result in duplicate
definitions), and their declaration is in filutilh.inc rather than
finah.inc anyway
* ensure that the fina.inc "MaxDirs" constant gets declared only once
* ensure that the finah.inc "TFilenameCaseMatch" type gets declared only
once
git-svn-id: branches/cpstrrtl@24994 -
2013-06-27 21:37:51 +00:00
Jonas Maebe
3694b4f003
* moved ToSingleByteFileSystemEncodedFileName() to the system unit and
...
export it so it can be used in all rtl units
git-svn-id: branches/cpstrrtl@24960 -
2013-06-24 09:40:00 +00:00
Jonas Maebe
a3c936fe5f
+ rawbytestring/unicodestring overloads for FileCreate and FileOpen.
...
The WinCE implementation converts the rawbytestring arguments to
unicodestring and calls unicode OS APIs, while the others convert
unicodestring arguments to DefaultFileSystemCodePage and call
single byte OS APIs
+ test for the above
git-svn-id: branches/cpstrrtl@22467 -
2012-09-27 07:54:25 +00:00