Lines Matching defs:os

26 import os
632 if os.path.exists(image_path):
633 image_size_1 = os.path.getsize(image_path)
640 if os.path.exists(image_path):
641 image_size_2 = os.path.getsize(image_path)
677 if not os.path.exists(ref_filename):
707 os.remove(ref_filename)
712 os.remove(image_path)
739 temp_uri = os.path.join(CONF.solaris_ipmi.imagecache_dirname,
743 if not os.path.isfile(temp_uri):
774 temp_uri = os.path.join(CONF.solaris_ipmi.imagecache_dirname,
776 if not os.path.isfile(temp_uri):
810 os.remove(temp_uri)
839 ovf_dir = os.path.join(mount_dir, "OVF")
841 for uar_file in os.listdir(ovf_dir):
845 iso = os.path.join(ovf_dir, uar_file)
857 iso = os.path.join(temp_tar_dir, ti.path)
1024 file_path = os.path.join(os.sep,
1025 url.netloc.strip(os.sep),
1026 url.path.strip(os.sep))
1027 if not os.path.isfile(file_path):
1127 file_path = os.path.join(os.sep,
1128 url.netloc.strip(os.sep),
1129 url.path.strip(os.sep))
1130 if not os.path.isfile(file_path):
1280 remote_file = os.path.join("/tmp", obj_name) + ".xml"
1288 os.remove(temp_file)
1304 os.remove(temp_file)
1312 os.remove(temp_file)
1692 if not os.path.exists(CONF.solaris_ipmi.imagecache_dirname):
1693 os.makedirs(CONF.solaris_ipmi.imagecache_dirname)
1850 temp_uar = os.path.join(CONF.solaris_ipmi.imagecache_dirname,
1854 temp_uar = os.path.join(CONF.solaris_ipmi.imagecache_dirname,
1918 temp_uar = os.path.join(CONF.solaris_ipmi.imagecache_dirname,
1922 temp_uar = os.path.join(CONF.solaris_ipmi.imagecache_dirname,
2441 remote_iso = os.path.join("/tmp", uuid) + ".iso"
2450 shutil.rmtree(os.path.dirname(iso))
2456 shutil.rmtree(os.path.dirname(iso))
2805 if not os.path.isfile(key_filename):