Commit Graph

74 Commits

Author SHA1 Message Date
juha
08c9621520 Change order of used units so that "deprecated" warnings are not triggered.
git-svn-id: trunk@49612 -
2015-08-07 17:20:40 +00:00
juha
653b5dd43a Codetools, unit FileProcs: Disable conditionally wrapper functions. For testing define DisableWrapperFunctions and build Lazarus.
git-svn-id: trunk@49504 -
2015-07-07 11:43:38 +00:00
juha
06ac76f560 LazUtils, unit FileUtil: Disable conditionally LazUtf8 and LazFileUtils wrapper functions. For testing define NoLazUTF8Wrappers and build Lazarus.
git-svn-id: trunk@49494 -
2015-07-04 23:08:00 +00:00
bart
5383338553 LazUtils: Don't raise exceptions in CopyFile function by default. Added a parameter to control this behaviour. Issue #0028236.
git-svn-id: trunk@49284 -
2015-06-07 09:21:24 +00:00
bart
f78f0d056d FileUtil: implement optional parameter DirAttr for FindAllFiles.
git-svn-id: trunk@47144 -
2014-12-08 21:51:43 +00:00
juha
8e7bbbd8f9 LazUtils: Overload FindAllFiles and FindAllDirectories with procedures having StringList as a parameter. Issue #27054, patch from wp.
git-svn-id: trunk@47034 -
2014-11-30 10:58:02 +00:00
juha
08fb92aaad LazUtils: Move TListFileSearcher and TListDirectoriesSearcher to public interface section. Issue #26632.
git-svn-id: trunk@46179 -
2014-09-11 15:18:22 +00:00
mattias
3e8d8b891e lazutils: TFileSearcher.Search: parameter SearchPath now works as semicolon separated search path
git-svn-id: trunk@45991 -
2014-07-30 12:05:38 +00:00
mattias
30c58e48d6 IDE,lazutils: added GetPhysicalFilenameCached
git-svn-id: trunk@45247 -
2014-05-30 13:41:20 +00:00
mattias
877c4d50b9 LCL: moved ReadAllLinks to LazUtils
git-svn-id: trunk@44577 -
2014-04-01 10:24: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
mattias
7fe318a1a3 lazutils: inlined
git-svn-id: trunk@41953 -
2013-07-01 12:58:11 +00:00
mattias
4cbfb35970 lazutils: clean up
git-svn-id: trunk@41942 -
2013-06-29 13:37:54 +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
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
mattias
3a9e8d9e0c lazutils: clean up
git-svn-id: trunk@41439 -
2013-05-28 08:09:50 +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
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
d79f871ec1 FileUtil: add some comment to point out we are in the transition of moving stuff to LazFileUtils.
git-svn-id: trunk@41296 -
2013-05-19 13:42:46 +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
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
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
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
juha
140ce5d69d LazUtils: move GetAllFilesMask's deprecated note to correct place.
git-svn-id: trunk@40850 -
2013-04-19 08:36:40 +00:00