dissect.fat
¶
Submodules¶
Package Contents¶
Classes¶
- exception dissect.fat.EmptyDirectoryError¶
Bases:
Error
Common base class for all non-exit exceptions.
- exception dissect.fat.Error¶
Bases:
Exception
Common base class for all non-exit exceptions.
- exception dissect.fat.FileNotFoundError¶
Bases:
Error
Common base class for all non-exit exceptions.
- exception dissect.fat.InvalidDirectoryError¶
Bases:
Error
Common base class for all non-exit exceptions.
- exception dissect.fat.InvalidHeaderMagic¶
Bases:
Error
Common base class for all non-exit exceptions.
- exception dissect.fat.LastEmptyDirectoryError¶
Bases:
Error
Common base class for all non-exit exceptions.
- exception dissect.fat.NotADirectoryError¶
Bases:
Error
Common base class for all non-exit exceptions.
- class dissect.fat.ExFAT(fh)¶
- filesystem¶
- vbr¶
- fs_name¶
- sector_size¶
- cluster_size¶
- fat_sector¶
- fat_sector_count¶
- fat_size¶
- fat¶
- cluster_heap_sector¶
- cluster_count¶
- root_dir_cluster¶
- root_dir_sector¶
- root_directory¶
- files¶
- alloc_bitmap¶
- upcase_table¶
- volume_label¶
- cluster_to_sector(cluster)¶
Returns the clusters’ corresponding sector address
- Parameters:
cluster (int) – cluster address
- Returns:
corresponding sector address if available
- Return type:
int
- sector_to_cluster(sector)¶
Returns the sectors’ corresponding cluster address
- Parameters:
sector (int) – sector address
- Returns:
corresponding cluster address if available
- Return type:
int
- runlist(starting_cluster, not_fragmented=True, size=None)¶
Creates a RunlistStream compatible runlist from exFAT FAT structures
- Parameters:
starting_cluster (int) – First cluster of file, folder or location in question
- Returns:
[(sector_offset, run_length)]
- Return type:
runlist
- get_cluster_chain(starting_cluster)¶
Reads the on disk FAT to construct the cluster chain
- Parameters:
starting_cluster (int) – cluster to look-up the chain from
- Returns:
Chain of clusters. Including starting_cluster
- Return type:
list
- class dissect.fat.FATFS(fh, encoding='ibm437')¶
- fh¶
- encoding¶
- sector¶
- bpb_size¶
- bpb¶
- bpb16¶
- bpb32¶
- fat_size¶
- total_sectors¶
- root_dir_sectors¶
- first_data_sector¶
- data_sec¶
- count_of_clusters¶
- sector_size¶
- cluster_size¶
- fat_stream¶
- fat¶
- data_stream¶
- volume_label¶
- volume_id¶
- root¶
- get(path, dirent=None)¶