tweak
This commit is contained in:
parent
6f514155f1
commit
0f2052446f
1 changed files with 1 additions and 4 deletions
|
@ -23,10 +23,7 @@ getDiskFree path = withFilePath path $ \c_path -> do
|
|||
free <- c_diskfree c_path
|
||||
ifM (safeErrno <$> getErrno)
|
||||
( return $ Just $ toInteger free
|
||||
, do
|
||||
Errno i <- getErrno
|
||||
print i
|
||||
return Nothing
|
||||
, return Nothing
|
||||
)
|
||||
where
|
||||
safeErrno (Errno v) = v == 0
|
||||
|
|
Loading…
Reference in a new issue