- Python Digital Forensics Cookbook
- Preston Miller Chapin Bryce
- 219字
- 2021-07-08 10:33:58
Getting started
This recipe requires the installation of two third-party modules pywin32 and pytz. All other libraries used in this script are present in Python's standard library. This recipe will primarily use two libraries, the built-in shutil and a third-party library, pywin32. The shutil library is our go-to for copying files within Python, and we can use it to preserve most of the timestamps and other file attributes. The shutil module, however, is unable to preserve the creation time of files it copies. Rather, we must rely on the Windows-specific pywin32 library to preserve it. While the pywin32 library is platform specific, it is incredibly useful to interact with the Windows operating system.
To learn more about the shutil library, visit https://docs.python.org/3/library/shutil.html.
To install pywin32, we need to access its SourceForge page at https://sourceforge.net/projects/pywin32/ and download the version that matches our Python installation. To check our Python version, we can import the sys module and call sys.version within an interpreter. Both the version and the architecture are important when selecting the correct pywin32 installer.
To learn more about the sys library, visit https://docs.python.org/3/library/sys.html.
In addition to the installation of the pywin32 library, we need to install pytz, a third-party library used to manage time zones in Python. We can install this library using the pip command:
pip install pytz==2017.2
- Learning Java Functional Programming
- 騰訊iOS測(cè)試實(shí)踐
- Responsive Web Design with HTML5 and CSS3
- SQL語(yǔ)言從入門到精通
- iOS應(yīng)用逆向工程(第2版)
- bbPress Complete
- 學(xué)習(xí)OpenCV 4:基于Python的算法實(shí)戰(zhàn)
- Scala Reactive Programming
- Mastering Akka
- Python爬蟲、數(shù)據(jù)分析與可視化:工具詳解與案例實(shí)戰(zhàn)
- 細(xì)說(shuō)Python編程:從入門到科學(xué)計(jì)算
- WordPress Search Engine Optimization(Second Edition)
- PHP程序設(shè)計(jì)經(jīng)典300例
- C++標(biāo)準(zhǔn)庫(kù)(第2版)
- Python量化交易