Example usage for android.os StatFs restat

List of usage examples for android.os StatFs restat

Introduction

In this page you can find the example usage for android.os StatFs restat.

Prototype

public void restat(String path) 

Source Link

Document

Perform a restat of the file system referenced by this object.

Usage

From source file:Main.java

private static long getTotalSize(String path) {
    StatFs fileStats = new StatFs(path);
    fileStats.restat(path);
    return (long) fileStats.getBlockCount() * fileStats.getBlockSize();
}