{"id":18035837,"url":"https://github.com/echo-devim/fudel","last_synced_at":"2025-04-04T23:25:31.599Z","repository":{"id":82335361,"uuid":"274594315","full_name":"echo-devim/fudel","owner":"echo-devim","description":"Schedule the deletion of your files and directories for the next days","archived":false,"fork":false,"pushed_at":"2020-07-14T07:50:43.000Z","size":83,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T08:12:23.164Z","etag":null,"topics":["cli","cpp17","file-delete-utility","file-deletion","gtkmm","scheduled-tasks"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/echo-devim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-24T06:38:35.000Z","updated_at":"2024-07-21T13:06:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec711a24-4cfe-441e-bf80-c51e12870fb9","html_url":"https://github.com/echo-devim/fudel","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo-devim%2Ffudel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo-devim%2Ffudel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo-devim%2Ffudel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo-devim%2Ffudel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echo-devim","download_url":"https://codeload.github.com/echo-devim/fudel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247263966,"owners_count":20910500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cpp17","file-delete-utility","file-deletion","gtkmm","scheduled-tasks"],"created_at":"2024-10-30T12:10:27.624Z","updated_at":"2025-04-04T23:25:31.584Z","avatar_url":"https://github.com/echo-devim.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Future Deletion\n\nFuture Deletion (fudel) is a tool to schedule the deletion of files and directories. \nThis can be useful to keep your files on your system for a certain number of days without have to worry to periodically clean up the system.\nThe tool is a command-line tool with a minimal GUI support and notification system.\n\nThe project is based on [sqlite_modern_cpp](https://github.com/SqliteModernCpp/sqlite_modern_cpp) wrapper library.\n\n## Prerequisites\nYou need to install the following libraries to compile the project:\n*  libnotify\n*  gtkmm-3.0\n*  C++17 compliant compiler\n*  libsqlite3\n\n## Usage\nShow the help menu:\n```\n$ ./fudel -h\nFuture Deletion Program, delete files in the next days\nUsage:\n  Fudel [OPTION...]\n\n  -h, --help          Show this help\n  -g, --gui           Add gui support\n  -s, --show          Show files in the database (output in JSON format)\n  -c, --check         Check and remove aged files\n  -n, --new arg       Add a new file that will be deleted after the specified\n                      lifetime (-a)\n  -a, --age arg       Set the time to wait for the new file until the\n                      deletion\n  -p, --postpone arg  Increase lifetime of the specified file\n  -r, --remove arg    Remove a file from the database (not from the disk)\n```\nThe first time you run the tool, it'll create a local database file (called `files.db`) in the same path of the executable.\n\nAdd a new file to the database:\n```\n$ ./fudel -n /tmp/test.txt -a 10\n```\nIn this way, we added the entry `/tmp/test.txt` in the database with associated its lifetime `10`.\nShow the database content with the following command:\n```\n$ ./fudel -s                    \nID:14,AGE:1,PATH:/tmp/a.txt\nID:15,AGE:10,PATH:/tmp/test.txt\nID:16,AGE:1,PATH:/tmp/test2.txt\n```\n**Every time** you invoke `--check` parameter, fudel iterates over all the entries in the database decreasing the age. When the age is equal to 0, the file/directory is deleted.\nThus, if you schedule a crontab job each day to run `./fudel -c`, in this case this means that `age` are the days left before the deletion.\n\nIf you set the `--gui` option, when used in combination with `-n` and `-p`, it will show a GTK prompt where to insert the age.\nThe usage is intended to be easier integrated into other tools (e.g. a file manager).\nFor example, considering Thunar, you can set a custom action executing: `./fudel -n '%f' -g`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecho-devim%2Ffudel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecho-devim%2Ffudel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecho-devim%2Ffudel/lists"}