Java File Size Get getFilesize(String filepath)

Here you can find the source of getFilesize(String filepath)

Description

get Filesize

License

Open Source License

Declaration

public static Double getFilesize(String filepath) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {

    public static Double getFilesize(String filepath) {
        File backupath = new File(filepath);
        return Double.valueOf(backupath.length()) / 1000.000;
    }// w  w w  .j  av a 2 s .co m
}

Related

  1. getFileSize(String filename)
  2. getFileSize(String fileName, Logger log)
  3. getFileSize(String filename, String dir)
  4. getFileSize(String filePath)
  5. getFileSize(String filePath)
  6. getFileSize(String filePath)
  7. getFileSize(String filePath)
  8. getFileSize(String filePath)
  9. getFileSize(String filepath)