Skip to content

Commit

Permalink
Merge pull request #7 from SeanPrashad/master
Browse files Browse the repository at this point in the history
Resolve #3 - Implement getFileSize
  • Loading branch information
MPierre9 committed Oct 17, 2017
2 parents 3bdbd94 + 4546899 commit 697b5a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions getFileSize.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import os

## The following function returns the size of a file, in bytes
## To use, call the function as follows print getFileSize("path/to/file")
def getFileSize(path):

fileSize = os.path.getsize(path)
return fileSize

0 comments on commit 697b5a7

Please sign in to comment.