Lines Matching refs:dir_name
178 dir_name = tempfile.mkdtemp(prefix=self._testMethodName+"_container_files_")
179 self._to_cleanup.append(dir_name)
181 zip_obj.extractall(path=dir_name)
186 file_path = os.path.join(dir_name, i)
203 dir_name = tempfile.mkdtemp(prefix=self._testMethodName+"_extracted_payload_")
204 self._to_cleanup.append(dir_name)
205 cmd = ["debugfs_static", '-R', 'rdump ./ %s' % dir_name, img_file_path]
210 if os.path.exists(os.path.join(dir_name, i)):
211 os.remove(os.path.join(dir_name, i))
212 if os.path.isdir(os.path.join(dir_name, "lost+found")):
213 shutil.rmtree(os.path.join(dir_name, "lost+found"))
214 return dir_name
217 dir_name = tempfile.mkdtemp(prefix=self._testMethodName+"_extracted_payload_")
218 self._to_cleanup.append(dir_name)
219 cmd = ["deapexer", "extract", apex_file_path, dir_name]
224 if os.path.exists(os.path.join(dir_name, i)):
225 os.remove(os.path.join(dir_name, i))
226 if os.path.isdir(os.path.join(dir_name, "lost+found")):
227 shutil.rmtree(os.path.join(dir_name, "lost+found"))
228 return dir_name