diff --git a/webif/html/browse/mp3.jim b/webif/html/browse/mp3.jim index 4b15926..a02fdc1 100755 --- a/webif/html/browse/mp3.jim +++ b/webif/html/browse/mp3.jim @@ -9,7 +9,7 @@ httpheader "application/json" set dir [cgi_get dir "/media/My Video/test"] puts "{" -foreach file [readdir $dir] { +foreach file [readdir -nocomplain $dir] { if {[file extension $file] ne ".mp3"} continue if {[catch { diff --git a/webif/html/browse/sizes.jim b/webif/html/browse/sizes.jim index b6ad7e6..03b79d5 100755 --- a/webif/html/browse/sizes.jim +++ b/webif/html/browse/sizes.jim @@ -24,7 +24,7 @@ foreach line [split $dutxt "\n"] { } # Handle symbolic links. -foreach file [readdir $dir] { +foreach file [readdir -nocomplain $dir] { set file "$dir/$file" if {[catch {set lk [file readlink $file]}]} continue diff --git a/webif/html/dedup/dedup b/webif/html/dedup/dedup index a878785..a172465 100755 --- a/webif/html/dedup/dedup +++ b/webif/html/dedup/dedup @@ -28,7 +28,7 @@ foreach dir $dirs { if {!$auto} { puts "\[$dir\]" } loadseries $dir - foreach file [lsort -command dedupsort [readdir $dir]] { + foreach file [lsort -command dedupsort [readdir -nocomplain $dir]] { if {[file extension $file] ne ".nts"} { continue } set file "$dir/[file rootname $file].hmt" diff --git a/webif/html/dedup/dedup.jim b/webif/html/dedup/dedup.jim index 55347f7..be9c550 100755 --- a/webif/html/dedup/dedup.jim +++ b/webif/html/dedup/dedup.jim @@ -28,7 +28,7 @@ puts "