bjornbjorn/snippetssync.ee2_addon — pull request #5 by jannisg (2012-01-10 01:52:01+00:00)
Title: #4 : Deleting Files now works on a CP to Filesystem basis.

Have a look at the solution that uses the individual `snippet_id` or `variable_id` to delete the source file from the filesystem folder.

I did some testing and everything seemed to work.

Obviously it's less of a "Purge directory" action since it only specifically deletes the file you delete.

Also it does not address the issue with direct DB manipulation, so if I delete a snippet from the DB manually (delete row) and the file still exists it will be written back into the DB on `session_start` (but that's how it's always been so shouldn't be too big a deal I hope).

What do you think?

PS: I messed up the commit history on my branch a little bit _(git noob walking :( )_ All that's actually been updated aside from version bumping to `1.0.4` is the `snippetslib.php` file.