Bart
bb021c62c4
TFileSearcher: add path to filename for OnQueryFileFound and OnQueryDirectoryFound.
...
Reason: Self.Path is not up to date unless directory will be entered, which is only done after the call.
2024-01-13 23:15:33 +01:00
Bart
9ec85e5d2a
FileUtil: implement TFileSearcher.OnQueryFileFound and OnQueryDirectoryFound. Gives the user the possibility
...
to reject files and/or directories. If rejected OnFileFound/OnDirectoryFound/OnDirectoryEnter will not be fired.
2023-11-06 15:16:32 +01:00
mattias
478c8209a6
laztuils: fixed FileIsInPath for different utf8 lengths
2023-08-03 13:44:43 +02:00
Juha
211d95da17
LCL: Use TLCLHandle instead of a redefined LCLType.THandle or TLCLIntfHandle. Deprecate them.
2023-07-03 11:17:01 +03:00
Juha
74446557f6
Remove old deprecated functions and units.
2023-06-15 02:35:52 +03:00
Bart
7471fd4635
LazUtils: FileUtil: fix memory leak (created a masklist twice).
2021-11-06 15:00:14 +01:00
Bart
719dd78ada
LazUtils: Masks: rename TMaskWindows to TWindowsMask. (Internal consistency with MatchesWindowsMask* functions.)
2021-10-29 20:24:06 +02:00
Bart
ddcf2d27db
LazUtils: implement TMaskListWindows in Masks unit.
2021-10-27 13:30:27 +02:00
Juha
d7036bb000
LazUtils: Restore the José Mejuto's version of TMask. Faster and better. Can be tested now without hurry.
2021-10-13 17:51:02 +03:00
juha
07fbbd53b3
LazUtils: A minor optimization / tweak.
...
git-svn-id: trunk@65259 -
2021-06-17 22:42:20 +00:00
bart
966ee04907
LazUtils: in CopyDirTree() add a PathDelim to both SourceDir and TarGetDir before testing wether TarGetDir is a subdirectory of SourceDir. Issue #0038644 .
...
git-svn-id: trunk@64845 -
2021-03-20 16:55:26 +00:00
mattias
59447e864b
lazutils: less hints
...
git-svn-id: trunk@64685 -
2021-02-28 08:52:18 +00:00
juha
401d451c71
LazUtils: Revert the big TMask change. It must be worked on later.
...
git-svn-id: trunk@64675 -
2021-02-27 09:15:16 +00:00
juha
d82f15fb2b
LazUtils: Replace TMask with a faster and better version from José Mejuto.
...
git-svn-id: trunk@64667 -
2021-02-26 16:17:16 +00:00
juha
77e6853ca6
Components: Reduce calls to LowerCase().
...
git-svn-id: trunk@64515 -
2021-02-10 13:43:15 +00:00
juha
36968885dd
LazUtils: Rename function FilenameIsPascalUnit -> FilenameHasPascalExt. Clashed with a function in Codetools. Update references.
...
git-svn-id: trunk@64376 -
2021-01-11 16:16:58 +00:00
juha
3ea7788cbf
Optimize CompareFileExt in different ways. Comparison of FPC/Lazarus generated files can be case-sensitive.
...
git-svn-id: trunk@64374 -
2021-01-10 19:07:52 +00:00
juha
7ba0f775e7
LazUtils: Call inherited in TListFileSearcher.DoFileFound and TListDirectoriesSearcher.DoDirectoryFound. Issue #38091 , patch from devEric69.
...
git-svn-id: trunk@64355 -
2021-01-08 16:37:42 +00:00
bart
108648506e
LazFileUtils: use const parameters in FindAllFiles. Patch by CudaText man. Issue #0037782
...
git-svn-id: trunk@63989 -
2020-10-10 09:46:50 +00:00
mattias
2e0d5cd263
lazutils: FindDefaultExecutablePath: fixed using env PATH with quotes
...
git-svn-id: trunk@63367 -
2020-06-17 09:46:51 +00:00
bart
e513f7a26a
TFileSearcher: use the new Options parameter for the MaskList.
...
git-svn-id: trunk@62783 -
2020-03-20 17:59:40 +00:00
juha
f867f60b13
LazUtils: Warn in a comment that function ReadFileToString() does not work with virtual files. Issue #36145 .
...
git-svn-id: trunk@62770 -
2020-03-16 19:51:51 +00:00
mattias
63594b3af5
lazutils: fixed TFileSearcher initial PathSeparator and paths with spaces
...
git-svn-id: trunk@61569 -
2019-07-11 14:56:44 +00:00
mattias
5905fbb553
lazutils: SearchFileInPath: added flags sffFile, sffExecutable
...
git-svn-id: trunk@60621 -
2019-03-08 13:19:10 +00:00
bart
34803af734
- TFileSearcher: implement property PathSeparator.
...
- and expose both MaskSeparator and PathSeparator in FindAllFiles()
- expose PathSeparator in FindAllDirectories.
Issue #0034607 .
git-svn-id: trunk@59687 -
2018-11-28 17:23:33 +00:00
juha
75d1f28106
LazUtils: Move more functions from FileUtils to LazFileUtilities, deprecate the old ones.
...
git-svn-id: trunk@59177 -
2018-09-28 12:25:39 +00:00
juha
571647e302
LazUtils: Move ExtractFileNameWithoutExt to LazFileUtils. Rhymes with ExtractFileNameOnly.
...
git-svn-id: trunk@59169 -
2018-09-26 17:49:27 +00:00
juha
0bb1729bdc
Cleanup for utility functions.
...
git-svn-id: trunk@58786 -
2018-08-27 19:03:21 +00:00
juha
887cf78963
Move a version of function ProgramDirectory from IDEProcs to FileUtils.ProgramDirectoryWithBundle.
...
git-svn-id: trunk@58619 -
2018-07-24 17:49:13 +00:00
juha
3ed79743c8
Remove the wrapper functions from LazUtils.FileUtil, Lcl.LclProcs and Codetools.FileProcs completely. Simplify code.
...
git-svn-id: trunk@56693 -
2017-12-11 19:44:37 +00:00
juha
09de77223d
LazUtils: Fix the package name in file headers.
...
git-svn-id: trunk@53753 -
2016-12-21 22:35:14 +00:00
mattias
e53ad0a63b
lazutils: simplified
...
git-svn-id: trunk@53403 -
2016-11-21 16:05:02 +00:00
ondrej
c4a4b773bd
LazUtils: FindDefaultExecutablePath refactoring. Issue #30816 , patch by AlexeyT
...
git-svn-id: trunk@53257 -
2016-10-29 06:30:41 +00:00
mattias
3bcde4474b
lazutils: FindDefaultExecutablePath: on Windows search in BaseDir as well, bug #30802 .
...
git-svn-id: trunk@53236 -
2016-10-27 10:38:59 +00:00
mattias
ad2a1d0c2d
lazutils: less warnings
...
git-svn-id: trunk@53137 -
2016-10-17 13:33:55 +00:00
bart
9c050f164e
LazUtils: disable the wrapper functions in FileUtil by default. The wrapper functions will be removed later on.
...
git-svn-id: trunk@51834 -
2016-03-06 13:19:23 +00:00
bart
2683bc53a8
LazUtils: Prevent CopyDirTree copying to a subdirectory of source: handle unicode characters.
...
git-svn-id: trunk@51692 -
2016-02-24 23:07:19 +00:00
bart
f7005c6649
LazUtils: Revert r51038 #10e166f60e. Fixes bug in CopyDirTree. Issue #0029695 .
...
git-svn-id: trunk@51675 -
2016-02-22 18:13:29 +00:00
bart
35b30db335
LazUtils: CopyDirTree: better readable Boolean expression.
...
git-svn-id: trunk@51041 -
2015-12-26 16:43:20 +00:00
bart
b8d42c3a62
LazUtils: Fix r51038 #10e166f60e for Issue #28841 .
...
git-svn-id: trunk@51039 -
2015-12-26 13:50:01 +00:00
bart
10e166f60e
LazUtils: Better fix "Prevent CopyDirTree copying to a subdirectory of source." Issue #28841 .
...
git-svn-id: trunk@51038 -
2015-12-26 13:14:11 +00:00
juha
d10faafb1a
LazUtils: Use trimmed paths for comparing sub-dir in CopyDirTree. Fix return value. Issue #28841 .
...
git-svn-id: trunk@51034 -
2015-12-25 19:14:04 +00:00
juha
6faa4e893c
LazUtils: Prevent CopyDirTree copying to a subdirectory of source. Issue #28841 .
...
git-svn-id: trunk@51033 -
2015-12-25 18:39:32 +00:00
mattias
7896da19ae
IDE: fixed searching in PATH on Windows
...
git-svn-id: trunk@50865 -
2015-12-17 14:34:53 +00:00
ondrej
3a6697bc77
codetools, lazutils, win32: less hints
...
git-svn-id: trunk@50822 -
2015-12-15 16:27:39 +00:00
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
b727702265
LazUtils: TFileSearcher.Search: do not remove directories that are subdirectories of another directory from ASearchPath,
...
when ASearchSubDirs is False. Issue #0027965 .
git-svn-id: trunk@48858 -
2015-04-25 18:28:43 +00:00