files_snapshots icon indicating copy to clipboard operation
files_snapshots copied to clipboard

Add Snapper compability

Open xhess opened this issue 7 years ago • 1 comments

Snapper does not create snapshots with the date in the name. The snapshots are only numbered. The date and some other information is stored in the info.xml next to the snapshot. This code reads the date from the info.xml file created by snapper. For this plugin to work with the snapper structure you have to use something like "/data/.snapshots/%snapshot%/snapshot" as Snapshot format (where %snapshot% = 1,2,3,...).

xhess avatar Nov 08 '17 08:11 xhess

I'm hesitant to merge this due to the added overhead of checking the existence of the xml file for every snapshot. The app already suffers from performance when you have a lot of snapshots.

Maybe an assumption can be made that either all snapshots have the xml file or none, then we only need to check if it exists once for non snapper setups.

icewind1991 avatar Nov 22 '17 12:11 icewind1991