mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #470] [MERGED] Add "Delete files" task #777
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/470
Author: @Boy132
Created: 7/8/2024
Status: ✅ Merged
Merged: 7/10/2024
Merged by: @Boy132
Base:
main← Head:feature/delete-files-task📝 Commits (5)
bd374dcstarted "delete files" task9fb739fadd logic to DeleteFilesServicee2f8902add frontend4a03714make nicer2a676d5move description to right place📊 Changes
6 files changed (+68 additions, -4 deletions)
View changed files
📝
app/Http/Requests/Api/Client/Servers/Schedules/StoreTaskRequest.php(+1 -1)📝
app/Jobs/Schedule/RunTaskJob.php(+6 -1)📝
app/Models/Task.php(+1 -0)➕
app/Services/Files/DeleteFilesService.php(+41 -0)📝
resources/scripts/components/server/schedules/ScheduleTaskRow.tsx(+6 -0)📝
resources/scripts/components/server/schedules/TaskDetailsModal.tsx(+13 -2)📄 Description
Closes #383
Examples for payload:
/server/rust/world.mapwill delete the fileworld.mapinside/server/rust/server/rust/*.savwill delete all files inside/server/rustthat end with.sav/server/rust/player.*.dbwill delete all files inside/server/rustthat start withplayer.and end with.db/oxide/data/backpackswill delete the whole folder/oxide/data/backpacks/oxide/data/backpacks/*will delete all files and folders inside/oxide/data/backpacksbut not/oxide/data/backpacksitself🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.