forked from hummypkg/sweeper
use new system rmdir
This commit is contained in:
parent
7d3c84fed5
commit
1feeb15d7e
@ -1,9 +1,9 @@
|
||||
Package: sweeper
|
||||
Priority: optional
|
||||
Section: misc
|
||||
Version: 2.0.12
|
||||
Version: 2.0.13
|
||||
Architecture: mipsel
|
||||
Maintainer: af123@hummypkg.org.uk
|
||||
Depends: webif(>=1.2.4-3)
|
||||
Depends: webif(>=1.2.5)
|
||||
Description: Sweeper is a package for managing recordings in a variety of ways using custom rules [See forum for details]
|
||||
Tags: http://hummy.tv/forum/threads/5138/
|
||||
|
@ -345,10 +345,9 @@ proc ::sweeper::folder_apply {dir callback args} {
|
||||
|
||||
proc ::sweeper::rmdir_if_empty {dir} {
|
||||
if {$dir eq $::root} return
|
||||
if {[file exists "$dir/.sweeper"]} return
|
||||
if {![system rmdir_if_empty $dir]} {
|
||||
if {![system rmdir_if_empty $dir ".series"]} {
|
||||
log "Failed to remove directory" 0
|
||||
foreach l [system rmdir_if_empty $dir 1] {
|
||||
foreach l [system dirblockers $dir] {
|
||||
log "Blocking file: $l" 2
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user