Cache file system
-
LemonParty
- Posts: 3
- Joined: 19.08.2026 11:21
Cache file system
I am a developer and I trying to implement a component that cache files on disk in Free Pascal. You probably already implemented this functionality (I mean tracking changes in file system) in CudaText. Can you point me to this code?
-
main Alexey
- Posts: 3198
- Joined: 25.08.2021 18:15
Re: Cache file system
I don't understand what part do you need. if you need a part 'which tracks changes in a filesystem in specified folder / for specified files' - look at the not mine component TDirectoryWatcher, somewhere in github.
-
LemonParty
- Posts: 3
- Joined: 19.08.2026 11:21
Re: Cache file system
Do you use this component in CudaText?TDirectoryWatcher
-
main Alexey
- Posts: 3198
- Joined: 25.08.2021 18:15
Re: Cache file system
no, maybe later I will use it. currently cudatext uses the thread which is constantly checks the file's 'exists' (bool) and 'last modif timestamp' and when any of these 2 are changed, thread calls notification of the TEditorFrame.
file formmain.pas,
procedure TAppNotifThread.Execute;
file formmain.pas,
procedure TAppNotifThread.Execute;