ac2cz / pi_pacsat

Open source implementation of the Pacsat protocol based on public documents. Designed to run on a Linux computer using Direwolf as the TNC
4 stars 0 forks source link

When file installed with a command then update its KEYWORDS with dir #4

Closed ac2cz closed 7 months ago

ac2cz commented 8 months ago

e.g. KEYWORDS would have DIR:SSTV_Q1 added to them if the file is installed there.

We can add a filter to find which files have those keywords. If it is installed in two dirs, then it gets two keywords. If we delete it then the keyword would be removed.

ac2cz commented 8 months ago

And set expiry date to infinity so it is not purged from dir

ac2cz commented 8 months ago

The reverse process should be run when file deleted from installed folder.

ac2cz commented 8 months ago

Implemented except where a whole folder is purged. We need to search the dir by keywords to see which to update.

ac2cz commented 8 months ago

Also, when we remove a file from a folder and update the pfh then the dir is reloaded. This will be slow if the dir is large. We should just remove the one header and insert it updated at the end.

ac2cz commented 7 months ago

Implemented for folder.