

The value given to DA to do the restore MUST be the /.trash/files/file.txt.1 path, and not the "visible" /.trash/file.txt, as that does not exist.ĭA needs to reference the data file, which does not always match the original filename, as there may be duplicates.ĬMD_FILE_MANAGER/.trash/files/file.txt.1?action=restoreįor mass restore, very similar to the POST Delete button in the Filemanager, except you can pass:Īlong with each select0=/.trash/files/file.txt you want to restore, and "path=/.trash"Īny tally, "all" or per-User, which affects disk usage, eg:Īction=tally&value=fred&type=user|resellerĪction=quotatally&value=fred=all&type=user|reseller If any parent folder is missing, the path will be created as 755.

Restoring the /.trash/files/* data simply renames it to where it came from. When viewing /.trash in the Filemanager, DA will not show you what's actually there, but the listing of "Path" items file/dir names from the. Deleting the same file over and over again creates a new copy, each of which can be restored. trash/files/dir.1 if it already exists.Įach delete-to-trash operation creates it's own instance. Similar behavior for directories, where deleting a dir to trash moves it to. The info file contains the Path and DeletionDate, which points to the original location (excludng any.

trash/info/ or (.trash/info/path.txt.1.trashinfo depending on how it was saved). trash/files/path.txt.1Ī related info file will be created in. trash/files/path.txt, the trash file is instead moved to. This will follow the trash specification: When deleting a file/folder, if the "trash=yes" option is included, the item will be move from /some/path.txt to /.trash/files//path.txt Up to a max of 10000 days before being purged. Which indicates the age of days a file before being deleted.įor folders, the last modified time of a folder must be >= 30 days old for it to be traversed. The related filemanager_disable_features number for "trash" is 65536.ĭepending if the feature is enabled or not. New File Manager feature that moves files/folders to the ~/.trash directory when deleted, rather than immediately removing them from disk.
