This commit is contained in:
Joey Hess 2012-03-22 22:49:33 -04:00
parent 6f514155f1
commit 0f2052446f

View file

@ -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