Skip to content

Returns a JSON listing all the files and Directories in the given path with their disk usage in bytes

Notifications You must be signed in to change notification settings

anindra/Disk_Space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disk_Space

Returns a JSON listing all the files and Directories in the given path with their disk usage in bytes

Download Some .jar File

https://www.dropbox.com/sh/zdp68g64f9eo511/AACtT-LC8_dTcGcblExf50lxa?dl=0

  1. After you have download all the .jar files you have to add the same in the Build Path which is mentioned below (at the end)

     (NOTE: PLEASE DO ADD .jar FILE TO THE BUILD PATH ELSE THE APPLICATION WILL THROW ERROR)
    

To Run on Eclipse

  1. Fork the repository in your git

  2. Download the code into your machine and set it up in eclipse

  3. To run the main application from Eclipse: GO to the Run -> Run Configuration -> Select Java Application

    i) Select Project as "Disk_Space". (You can search it from Browse)

    ii) Select Main class as: main.Controller.ReturnDiskUsageOfThePath_Driver (You can search it from Browse)

    iii) Go to Arguments tab (2nd tab)

    iv) under Program_arguments: give a path (make sure the path starts from root eg. /home/user/Desktop)

    v) Once all the steps above done, click on Run button

    vi) voila!! It will give you a json responce listing all Files and Directories with their disk usage in bytes

  4. To run JUnit Test Cases:

    i) I have added some test cases which can be run via -> Go to the test Folder -> click on any java class -> when the file open right click in the Editor -> select Run As -> Select JUnit Test

     (NOTE: TO MAKE THE TEST CASE WORK, CHANGE THE GIVEN PATH TO YOUR LOCAL PATH)
    

Add .jar file to the Build Path

  1. Right click on the project, go to build path -> Configure Build Path
  2. Go to Libraries Tab
  3. Click on "ADD EXTERNAL JARS..."
  4. selet all the .jar file you downloaded and click OK
  5. Click on "Apply and Close"

About

Returns a JSON listing all the files and Directories in the given path with their disk usage in bytes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages