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
|
free <- c_diskfree c_path
|
||||||
ifM (safeErrno <$> getErrno)
|
ifM (safeErrno <$> getErrno)
|
||||||
( return $ Just $ toInteger free
|
( return $ Just $ toInteger free
|
||||||
, do
|
, return Nothing
|
||||||
Errno i <- getErrno
|
|
||||||
print i
|
|
||||||
return Nothing
|
|
||||||
)
|
)
|
||||||
where
|
where
|
||||||
safeErrno (Errno v) = v == 0
|
safeErrno (Errno v) = v == 0
|
||||||
|
|
Loading…
Reference in a new issue