Lines Matching full:part
46 def get_uf2_info_path(part) -> Path: argument
47 return Path(part.mountpoint) / "INFO_UF2.TXT"
50 def is_uf2_partition(part): argument
52 return ((part.fstype in ['vfat', 'FAT', 'msdos']) and
53 UF2BinaryRunner.get_uf2_info_path(part).is_file())
58 def get_uf2_info(part): argument
59 lines = UF2BinaryRunner.get_uf2_info_path(part).read_text().splitlines()
69 def match_board_id(self, part): argument
70 info = self.get_uf2_info(part)
75 parts = [part for part in psutil.disk_partitions() if self.is_uf2_partition(part)]
78 parts = [part for part in parts if self.match_board_id(part)]
85 def copy_uf2_to_partition(self, part): argument
88 copy(self.cfg.uf2_file, part.mountpoint)
103 part = partitions[0]
104 self.logger.info("Copying UF2 file to '%s'", part.mountpoint)
105 self.copy_uf2_to_partition(part)