Commit Graph

87 Commits

Author SHA1 Message Date
mattias
877c4d50b9 LCL: moved ReadAllLinks to LazUtils
git-svn-id: trunk@44577 -
2014-04-01 10:24:50 +00:00
bart
f10b9abc94 LazUtils: Use ResolveDots in FindDiskFilename(CaseInSensitive) to sanitize Filename.
git-svn-id: trunk@42660 -
2013-09-07 10:13:14 +00:00
bart
eab977d2b3 LazUtils: AllowDirectorySeparators instead of PathDelim in FindDiskFilename.
git-svn-id: trunk@42648 -
2013-09-06 18:15:16 +00:00
bart
78fe9ed6eb LazUtils: when seraching for PathDelimiters use AllowDirectorySeparators instead of PathDelim.
Reason: compatibility with fpc RTL.

git-svn-id: trunk@42622 -
2013-09-05 17:55:50 +00:00
mattias
98ea2c18a5 lazutils: fixed compilation darwin
git-svn-id: trunk@42372 -
2013-08-09 08:30:52 +00:00
mattias
8fb042dba7 lazutils: FindDefaultExecutablePath: added default param BaseDir
git-svn-id: trunk@42361 -
2013-08-05 19:33:31 +00:00
mattias
283ae2bad5 lazutils: merged code
git-svn-id: trunk@42360 -
2013-08-05 19:24:41 +00:00
mattias
d46e886263 lazutils: clean up
git-svn-id: trunk@42359 -
2013-08-05 19:19:30 +00:00
juha
bdc7156f0f Converter: backup also include files + minor refactoring.
git-svn-id: trunk@41946 -
2013-06-30 06:43:29 +00:00
juha
eaef69c3e5 LazUtils: Create destination dirs in CopyDirTree(). Fixes a regression.
git-svn-id: trunk@41939 -
2013-06-29 13:14:51 +00:00
bart
347f0c2afe LazUtils: move GetFileDescription from FileUtil to LazFileUtils.
Part of moving all UTF8 related filefunctions to LazFileUtils.

git-svn-id: trunk@41903 -
2013-06-26 09:43:12 +00:00
paul
77686a4dbc components, lcl: replace FileIsWritable by DirectoryIsWritable when we check a directory
git-svn-id: trunk@41832 -
2013-06-23 15:31:33 +00:00
bart
7ac6639fb4 LazUtils: Move GetAppConfigDirUTF8 and GetAppConfigFileUTF8 to LazFileUtils (and inline them in FileUtil).
Part of the ongoing restructuring of LazUtils.

git-svn-id: trunk@41589 -
2013-06-08 15:00:18 +00:00
bart
555ede86aa LazUtils: Move SysErrorMessageUTF8 to LazUtf8 (and inline it in FileUtil).
Part of the ongoing restructuring of LazUtils.

git-svn-id: trunk@41588 -
2013-06-08 14:54:15 +00:00
bart
bcea8662ff LazUtils: Move ConsoleToUTF8, UTF8ToConsole, ParamStrUTF8,
GetEnvironmentStringUTF8 and GetEnvironmentVariableUTF8 to LazUtf8 (and inline them in FileUtil).
Part of the ongoing restructuring of LazUtils.

git-svn-id: trunk@41587 -
2013-06-08 14:41:16 +00:00
bart
8df292bbb6 LazUtils: Move FileSearchUtf8 to LazFileUtils (and inline it in FileUtil).
Part of the ongoing restructuring of LazFileUtils/FileUtil.

git-svn-id: trunk@41568 -
2013-06-06 21:29:50 +00:00
bart
9cab951c18 LazUtils: Move FileIsReadOnly to LazFileUtils (and inline it in FileUtil).
Part of the ongoing restructuring of LazFileUtils/FileUtil.

git-svn-id: trunk@41566 -
2013-06-06 21:22:21 +00:00
mattias
4e6e36dc04 lazutils: sort uses clause
git-svn-id: trunk@41488 -
2013-06-02 08:32:06 +00:00
bart
27e955ca5c FileUtil: Implement WideString API based version of ParamStrUtf8 on Windows.
git-svn-id: trunk@41486 -
2013-06-01 18:01:02 +00:00
bart
1d2d0b6a26 LazFileUtils: (Try)CreateRelativePath: implement option to control wether Dest and Source
must always share a common base folder (being not the root directory).
For CreateRelativePath it defaults to True for backwards compatibility.

git-svn-id: trunk@41452 -
2013-05-29 19:01:13 +00:00
bart
a74716e6aa LazFileUtils: Fix CreateRelativePath function. Better fix for issue #0022603.
git-svn-id: trunk@41449 -
2013-05-29 11:51:48 +00:00
juha
ecd140c985 Improve license headers in sources, part 2. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41389 -
2013-05-25 09:22:25 +00:00
bart
42315809a3 LazUtils: move more Utf8 file routines to LazFileUtils (and inline them in FileUtil):
ForceDirectoriesUTF8.

git-svn-id: trunk@41374 -
2013-05-23 17:26:47 +00:00
bart
b9a543d619 LazUtils: move more Utf8 file routines to LazFileUtils (and inline them in FileUtil):
CompareFileExt, FileIsExecutable, CheckIfFileIsExecutable, FileIsSymlink, CheckIfFileIsSymlink,
FileIsHardLink, FileIsReadable, FileIsWritable.

git-svn-id: trunk@41358 -
2013-05-22 16:36:57 +00:00
bart
cb33ec967a LazUtils: move more Utf8 file routines to LazFileUtils (and inline them in FileUtil):
ForceDirectory, DirectoryIsWritable.

git-svn-id: trunk@41356 -
2013-05-22 15:38:48 +00:00
bart
ba38848714 LazUtils: move more Utf8 file routines to LazFileUtils (and inline them in FileUtil):
DirPathExists, CompareFilenames, CompareFilenamesIgnoreCase.

git-svn-id: trunk@41354 -
2013-05-22 15:14:35 +00:00
bart
b59ec93c89 LazUtils: move the more UTF8 file routines to LazFileUtils (and inline them in FileUtil):
FindFirstUTF8, FindNextUTF8, FindCloseUTF8, DeleteFileUTF8, RenameFileUTF8,
GetCurrentDirUTF8, SetCurrentDirUTF8, CreateDirUTF8, RemoveDirUTF8,
FilenameIsAbsolute, FilenameIsWinAbsolute and FilenameIsUnixAbsolute.

git-svn-id: trunk@41348 -
2013-05-22 10:24:41 +00:00
bart
a9b26cc418 FileUtil: inline ChompPathDelim to LazFileUtils.ChompPathDelim.
git-svn-id: trunk@41324 -
2013-05-20 13:24:19 +00:00
bart
c990f3d7c8 FileUtil: inline AppendPathDelim, TrimFilename, CleanAndExpandFilename and CleanAndExpandDirectory
to their LazFileUtils couterparts.

git-svn-id: trunk@41297 -
2013-05-19 14:08:07 +00:00
bart
ef3320295a FileUtil: inline FileSize to LazFileUtils.FileSizeUtf8.
git-svn-id: trunk@41295 -
2013-05-19 13:15:30 +00:00
bart
bdec439cd2 FileUtil: inline FileSetDateUTF8 to use LazFileUtils.FileSetDateUTF8.
git-svn-id: trunk@41290 -
2013-05-19 12:56:41 +00:00
bart
d1e6e77a05 LazFileUtils: inline FileAgeUTF8 to LazFileUtils.FileAgeUTF8
git-svn-id: trunk@41288 -
2013-05-19 12:43:01 +00:00
bart
946e76d280 FileUtil: inline DirectoryExistsUTF8 to LazFileutils.DirectoryExistsUTF8.
git-svn-id: trunk@41286 -
2013-05-19 12:28:41 +00:00
bart
f813d88848 FileUtil: inline FileExistsUTF8 to use LazFileUtils.FileExistsUTF8.
git-svn-id: trunk@41284 -
2013-05-19 12:21:16 +00:00
bart
0a3ee817e7 FileUtil: inline FileGetAttrUTF8 and FileSetAttrUTF8 to their LazFileUtils counterparts.
git-svn-id: trunk@41282 -
2013-05-19 12:11:27 +00:00
bart
da816b1721 FileUtil: inline NeedRTLAnsi, SetNeedRTLAnsi, UTF8ToSys ans UTF8ToAnsi to use their LazuUtf8 counterparts.
git-svn-id: trunk@41280 -
2013-05-19 11:43:06 +00:00
bart
cba0395125 FileUtil: inline FileOpenUTF8, FileCreateUTF8 and FileCreateUTF8 to their LazFileUtils counterparts.
Next step in moving UTF8 file routines to LazFileUtils.

git-svn-id: trunk@41211 -
2013-05-15 17:14:24 +00:00
bart
f77efa70a9 FileUtil: inline FileIsText to LazFileUtils.FileIsText.
Next step in moving UTF8 file routines to LazFileUtils.

git-svn-id: trunk@41210 -
2013-05-15 17:03:11 +00:00
mattias
8e652015ad lazutils; fixed compilation under unix
git-svn-id: trunk@41160 -
2013-05-12 18:20:15 +00:00
bart
d219baae5f FileUtil: DeleteDirectory: also delete symlinks in a directory on *nix (don't follow them). Issue #0024415.
git-svn-id: trunk@41159 -
2013-05-12 18:15:48 +00:00
juha
bdba8f2a01 One more "inherited Create;" to be sure.
git-svn-id: trunk@41097 -
2013-05-09 15:37:10 +00:00
juha
8ddfe52d9b Add "inherited Create;" to constructors for classes derived from TFileSearcher.
git-svn-id: trunk@41089 -
2013-05-09 11:52:17 +00:00
bart
a031882b1a FileUtil: inline ExpandFileNameUTF8 as LazFileUtils.ExpandFileNameUTF8,
which has better handling of unicode characters on Windows.
(One step in the moving of UTF8 related filefunctions to LazFileUtils)

git-svn-id: trunk@41038 -
2013-05-05 11:40:45 +00:00
bart
0baf6d6df0 CreateRelativePath (FileUtil and LazFileUtils): use SysUtilsExtractRelativePath inernally.
Fixes issue #0022603.

git-svn-id: trunk@41036 -
2013-05-05 11:20:44 +00:00
bart
0631e9d7d1 TFileSearcher: Implement OnDirectoryEnter event.
git-svn-id: trunk@41032 -
2013-05-04 21:52:55 +00:00
bart
f84bed8662 TFileSearcher: Implement FileAttribute and DirectoryAttribute properties to let user control
what files and directories are searched. Fixes issue #0024369.

git-svn-id: trunk@41031 -
2013-05-04 21:41:00 +00:00
mattias
33e67992e5 lazutils: fixed TListFileSearcher.Create
git-svn-id: trunk@40996 -
2013-05-02 11:23:26 +00:00
bart
5fcdbd6c7d TFileSearcher.Search: use Windows specific file pattern matching on Windows.
Fixes issue #0024306

git-svn-id: trunk@40973 -
2013-05-01 11:03:12 +00:00
juha
48f88c37ef Revert "Use AllFilesMask everywhere instead of GetAllFilesMask, mask must be fixed in FPC libs"
git-svn-id: trunk@40957 -
2013-04-30 16:35:02 +00:00
bart
d479775c9d TFileSearcher: allow case-sensitive file searching (defaults to false).
git-svn-id: trunk@40902 -
2013-04-27 17:22:51 +00:00