Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f47eb3 commit 903d620Copy full SHA for 903d620
check_for_sqlite_files.py
@@ -1,10 +1,10 @@
1
# Script Name : check_for_sqlite_files.py
2
# Author : Craig Richards
3
# Created : 07 June 2013
4
-# Last Modified :
5
-# Version : 1.0
+# Last Modified : 14 February 2016
+# Version : 1.0.1
6
7
-# Modifications :
+# Modifications : 1.0.1 - Remove unecessary line and variable on Line 21
8
9
# Description : Scans directories to check if there are any sqlite files in there
10
@@ -18,8 +18,7 @@ def isSQLite3(filename):
18
if getsize(filename) < 100: # SQLite database file header is 100 bytes
19
return False
20
else:
21
- fd = open(filename, 'rb')
22
- Header = fd.read(100)
+ Header = open(filename, 'rb').read(100)
23
fd.close()
24
25
if Header[0:16] == 'SQLite format 3\000':
0 commit comments