dissect.target 3.20.dev57__py3-none-any.whl → 3.20.dev58__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- dissect/target/filesystems/fat.py +19 -13
- {dissect.target-3.20.dev57.dist-info → dissect.target-3.20.dev58.dist-info}/METADATA +1 -1
- {dissect.target-3.20.dev57.dist-info → dissect.target-3.20.dev58.dist-info}/RECORD +8 -8
- {dissect.target-3.20.dev57.dist-info → dissect.target-3.20.dev58.dist-info}/WHEEL +1 -1
- {dissect.target-3.20.dev57.dist-info → dissect.target-3.20.dev58.dist-info}/COPYRIGHT +0 -0
- {dissect.target-3.20.dev57.dist-info → dissect.target-3.20.dev58.dist-info}/LICENSE +0 -0
- {dissect.target-3.20.dev57.dist-info → dissect.target-3.20.dev58.dist-info}/entry_points.txt +0 -0
- {dissect.target-3.20.dev57.dist-info → dissect.target-3.20.dev58.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,5 @@
|
|
1
1
|
import datetime
|
2
|
+
import math
|
2
3
|
import stat
|
3
4
|
from typing import BinaryIO, Iterator, Optional, Union
|
4
5
|
|
@@ -100,16 +101,21 @@ class FatFilesystemEntry(FilesystemEntry):
|
|
100
101
|
def lstat(self) -> fsutil.stat_result:
|
101
102
|
"""Return the stat information of the given path, without resolving links."""
|
102
103
|
# mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime
|
103
|
-
st_info =
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
104
|
+
st_info = fsutil.stat_result(
|
105
|
+
[
|
106
|
+
(stat.S_IFDIR if self.is_dir() else stat.S_IFREG) | 0o777,
|
107
|
+
self.entry.cluster,
|
108
|
+
id(self.fs),
|
109
|
+
1,
|
110
|
+
0,
|
111
|
+
0,
|
112
|
+
self.entry.size,
|
113
|
+
self.entry.atime.replace(tzinfo=self.fs.tzinfo).timestamp(),
|
114
|
+
self.entry.mtime.replace(tzinfo=self.fs.tzinfo).timestamp(),
|
115
|
+
self.entry.ctime.replace(tzinfo=self.fs.tzinfo).timestamp(),
|
116
|
+
]
|
117
|
+
)
|
118
|
+
|
119
|
+
st_info.st_blocks = math.ceil(self.entry.size / self.entry.fs.cluster_size)
|
120
|
+
st_info.st_blksize = self.entry.fs.cluster_size
|
121
|
+
return st_info
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dissect.target
|
3
|
-
Version: 3.20.
|
3
|
+
Version: 3.20.dev58
|
4
4
|
Summary: This module ties all other Dissect modules together, it provides a programming API and command line tools which allow easy access to various data sources inside disk images or file collections (a.k.a. targets)
|
5
5
|
Author-email: Dissect Team <dissect@fox-it.com>
|
6
6
|
License: Affero General Public License v3
|
@@ -30,7 +30,7 @@ dissect/target/filesystems/cpio.py,sha256=ssVCjkAtLn2FqmNxeo6U5boyUdSYFxLWfXpytH
|
|
30
30
|
dissect/target/filesystems/dir.py,sha256=rKEreX3A7CI6a3pMssrO9F-9i5pkxCn_Ucs_dMtHxxA,4574
|
31
31
|
dissect/target/filesystems/exfat.py,sha256=PRkZPUVN5NlgB1VetFtywdNgF6Yj5OBtF5a25t-fFvw,5917
|
32
32
|
dissect/target/filesystems/extfs.py,sha256=LVdB94lUI2DRHW0xUPx8lwuY-NKVeSwFGZiLOpZ8-Lk,4827
|
33
|
-
dissect/target/filesystems/fat.py,sha256=
|
33
|
+
dissect/target/filesystems/fat.py,sha256=bqpN4kVSz-0cz3P4QLk1ouJFw1xH1atCynW_ehXJAJE,4824
|
34
34
|
dissect/target/filesystems/ffs.py,sha256=ry7aPb_AQeApTuhVQVioQPn4Q795_Ak5XloEtd-0bww,4950
|
35
35
|
dissect/target/filesystems/itunes.py,sha256=w2lcWv6jlBPm84tsGZehxKBMXXyuW3KlmwVTF4ssQec,6395
|
36
36
|
dissect/target/filesystems/jffs.py,sha256=fw25gM-Cx26VuTBmbaVNP1hKw73APkZ4RhI8MGY7-cQ,4207
|
@@ -378,10 +378,10 @@ dissect/target/volumes/luks.py,sha256=OmCMsw6rCUXG1_plnLVLTpsvE1n_6WtoRUGQbpmu1z
|
|
378
378
|
dissect/target/volumes/lvm.py,sha256=wwQVR9I3G9YzmY6UxFsH2Y4MXGBcKL9aayWGCDTiWMU,2269
|
379
379
|
dissect/target/volumes/md.py,sha256=7ShPtusuLGaIv27SvEETtgsuoQyAa4iAAeOR1NEaajI,1689
|
380
380
|
dissect/target/volumes/vmfs.py,sha256=-LoUbn9WNwTtLi_4K34uV_-wDw2W5hgaqxZNj4UmqAQ,1730
|
381
|
-
dissect.target-3.20.
|
382
|
-
dissect.target-3.20.
|
383
|
-
dissect.target-3.20.
|
384
|
-
dissect.target-3.20.
|
385
|
-
dissect.target-3.20.
|
386
|
-
dissect.target-3.20.
|
387
|
-
dissect.target-3.20.
|
381
|
+
dissect.target-3.20.dev58.dist-info/COPYRIGHT,sha256=m-9ih2RVhMiXHI2bf_oNSSgHgkeIvaYRVfKTwFbnJPA,301
|
382
|
+
dissect.target-3.20.dev58.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
|
383
|
+
dissect.target-3.20.dev58.dist-info/METADATA,sha256=seB7oyVE8b59vkMXrmM129amhSswMf-hEzGiXR-qEyY,13025
|
384
|
+
dissect.target-3.20.dev58.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
|
385
|
+
dissect.target-3.20.dev58.dist-info/entry_points.txt,sha256=BWuxAb_6AvUAQpIQOQU0IMTlaF6TDht2AIZK8bHd-zE,492
|
386
|
+
dissect.target-3.20.dev58.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
|
387
|
+
dissect.target-3.20.dev58.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{dissect.target-3.20.dev57.dist-info → dissect.target-3.20.dev58.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|