Don't move files on other devices to Dustbin

This commit is contained in:
MymsMan 2020-02-20 22:41:25 +00:00 committed by HummyPkg
parent 8994d016ef
commit d2e4e10919

View File

@ -36,6 +36,13 @@ if {![exists -proc _del_bindir]} {
set dustbin 0
}
# Check if files are on same device as mediaroot
set dir [system mediaroot]
file stat "$dir/" rootstat
set rootdev $rootstat(dev)
file stat $file st
if {$st(dev) != $rootdev} {set dustbin 0}
# Directory
if {[file isdirectory $file]} {