Page 1 of 1
Cache file system
Posted: 19.08.2026 11:26
by LemonParty
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?
Re: Cache file system
Posted: 19.08.2026 12:26
by main Alexey
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.
Re: Cache file system
Posted: 19.08.2026 14:13
by LemonParty
TDirectoryWatcher
Do you use this component in CudaText?
Re: Cache file system
Posted: 19.08.2026 21:47
by main Alexey
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;
Re: Cache file system
Posted: 20.08.2026 13:08
by LemonParty
Understood. Thank you.