use of org.apache.ignite.internal.processors.igfs.secondary.local.LocalFileSystemSizeVisitor in project ignite by apache.
the class LocalIgfsSecondaryFileSystem method usedSpaceSize.
/** {@inheritDoc} */
@Override
public long usedSpaceSize() {
Path p = fileForPath(IgfsPath.ROOT).toPath();
try {
LocalFileSystemSizeVisitor visitor = new LocalFileSystemSizeVisitor();
Files.walkFileTree(p, visitor);
return visitor.size();
} catch (IOException e) {
throw new IgfsException("Failed to calculate used space size.", e);
}
}
Aggregations