File[] inElements = element.listFiles(new RegExpFilenameFilter(
Pattern.compile("\\."), false));
if (inElements == null)
continue;
for (File inElement : inElements) {
FileStat stat = null;
try {
stat = posix.stat(inElement.getPath());
} catch (LastErrorException e) {
if (Posix.getErrorCode(e) == BasePosix.ENOENT)
continue;
throw new IOException(String.format(
"cannot stat(%s): %s", inElement,
e.getMessage()));
}
if (inElement.getName().endsWith(TEMPORARY_SUFFIX)
&& stat.mtime() >= oldtemp)
continue;
if (inElement.getName().endsWith(LOCKED_SUFFIX)
&& stat.mtime() >= oldlock)
continue;
warn("removing too old volatile file: " + inElement);
try {
posix.unlink(inElement.getPath());
} catch (LastErrorException e) {