Skip to content

Commit 258cec4

Browse files
committed
Show file information for a given file
1 parent be1b412 commit 258cec4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

fileinfo.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1+
# Script Name : fileinfo.py
2+
# Author : Not sure where I got this from
3+
# Created : 28th November 2011
4+
# Last Modified :
5+
# Version : 1.0
6+
# Modifications :
7+
8+
# Description : Show file information for a given file
9+
10+
111
# get file information using os.stat()
212
# tested with Python24 vegsaeat 25sep2006
313
import os
414
import stat # index constants for os.stat()
515
import time
616
# pick a file you have ...
7-
#file_name = 'puttylogs.py'
817
file_name = raw_input("Enter a file name: ")
918
file_stats = os.stat(file_name)
1019
# create a dictionary to hold file info

0 commit comments

Comments
 (0)