We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be1b412 commit 258cec4Copy full SHA for 258cec4
fileinfo.py
@@ -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
11
# get file information using os.stat()
12
# tested with Python24 vegsaeat 25sep2006
13
import os
14
import stat # index constants for os.stat()
15
import time
16
# pick a file you have ...
-#file_name = 'puttylogs.py'
17
file_name = raw_input("Enter a file name: ")
18
file_stats = os.stat(file_name)
19
# create a dictionary to hold file info
0 commit comments