commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From levi levi mail <levi.mail.l...@gmail.com>
Subject [io] FileSystemUtils.freeSpaceKb on unix gives OS error
Date Wed, 19 May 2010 12:27:37 GMT
Hi,

I'm testing an app on Windows and Unix with commons-io-1.4.jar
On Windows calculating the freeSpace is OK,
but on Unix I get the following error.
Executing 'df -k' manually on the machine works as expected. Too bad we
don't see a better error description. Does anyone have any hints where to
look for the problem? Maybe userrights?

java.io.IOException: Command line returned OS error code '1' for command
[df, -k, ]
at
org.apache.commons.io.FileSystemUtils.performCommand(FileSystemUtils.java:419)
at
org.apache.commons.io.FileSystemUtils.freeSpaceUnix(FileSystemUtils.java:323)
at
org.apache.commons.io.FileSystemUtils.freeSpaceOS(FileSystemUtils.java:196)
at
org.apache.commons.io.FileSystemUtils.freeSpaceKb(FileSystemUtils.java:166)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message