catch sort file stats

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1110 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-08-07 20:25:13 +00:00
parent d2712f2a76
commit 4e36ecc6f0

View File

@ -300,9 +300,9 @@ proc s_time {a b} {
return 0 return 0
} }
file stat $a l if {[catch {file stat $a l}]} { return 0}
set at $l(ctime) set at $l(ctime)
file stat $b l if {[catch {file stat $b l}]} { return 0}
set bt $l(ctime) set bt $l(ctime)
if {$at < $bt} { return -1 } if {$at < $bt} { return -1 }