Skip to content

Commit 3928fe4

Browse files
Merge pull request #2784 from avinashkranjan/deepsource-transform-42910022
format code with autopep8
2 parents a10a085 + 1c0234f commit 3928fe4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

File_Carving_Script/File_Carving_Scripr.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
dir_cnt = 0
1010

1111
# Directory search
12+
13+
1214
def fileSearch(dir_path, cnt):
1315
global file_cnt
1416
global dir_cnt
@@ -28,13 +30,16 @@ def fileSearch(dir_path, cnt):
2830
elif os.path.isdir(full_path):
2931
for i in range(cnt):
3032
print("\t", end=" ")
31-
print("[!] SubDirectory: \"%s\" found. Start file search in this directory." % files)
33+
print(
34+
"[!] SubDirectory: \"%s\" found. Start file search in this directory." % files)
3235
filelist.extend(fileSearch(full_path, cnt + 1))
3336
dir_cnt += 1
3437

3538
return filelist
3639

3740
# File open and store carved file
41+
42+
3843
def Carving(file_list):
3944
cnt = 0
4045
carv_list = []
@@ -56,6 +61,8 @@ def Carving(file_list):
5661
return carv_list
5762

5863
# Find signature
64+
65+
5966
def findSignature(file):
6067
flag = 0
6168
contents = []
@@ -77,6 +84,7 @@ def findSignature(file):
7784
contents.append(buf)
7885
return contents
7986

87+
8088
# Main
8189
if __name__ == "__main__":
8290
print("==================File Search Start==================")

0 commit comments

Comments
 (0)