-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added code so filepath can be supplied as a command line arg
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
from phase_1 import DiskDrive | ||
import sys | ||
|
||
|
||
def main(): | ||
# get filepath from arguments list | ||
if len(sys.argv) > 1: | ||
file_path = sys.argv[1] | ||
else: | ||
file_path = r'D:\repos\ET4027\FS-Forensics\Sample_1.dd' | ||
|
||
fs = DiskDrive(file_path) | ||
fs.print_partition_information() | ||
|
||
|
||
if __name__ == '__main__': | ||
fs = DiskDrive(r'D:\repos\ET4027\AssignmentDrive\et4027.dd') | ||
fs.print_partition_information() | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Pádraig McCarthy - 18227465 | ||
Lucy Dolan Egan - 18222765 | ||
|
||
|
||
Intructions: | ||
|
||
python main.py {path_to_file} |