COT.helpers.fatdisk module¶
Give COT access to fatdisk for creating and updating FAT32 file systems.
http://github.com/goblinhack/fatdisk
- class FatDisk[source]¶
Bases: COT.helpers.helper.Helper
Helper provider for fatdisk (http://github.com/goblinhack/fatdisk).
Methods
install_helper Install fatdisk. create_raw_image Create a new FAT32-formatted raw image at the requested location. - create_raw_image(file_path, contents, capacity=None)[source]¶
Create a new FAT32-formatted raw image at the requested location.
Parameters: - file_path (str) – Desired location of new disk image
- contents (list) – List of file paths to package into the created image.
- capacity – (optional) Disk capacity. A string like ‘16M’ or ‘1G’.