Did I find the right examples for you? yes no

All Samples(24)  |  Call(22)  |  Derive(0)  |  Import(2)

src/x/c/xcp-storage-managers-HEAD/drivers/ISOSR.py   xcp-storage-managers(Download)
            return
 
        for name in filter(is_image_utf8_compatible, util.listdir(self.path, quiet = True)):
            self.vdis[name] = ISOVDI(self, name)
            # Set the VDI UUID if the filename is of the correct form.

src/x/c/xcp-storage-managers-HEAD/drivers/LVHDoISCSISR.py   xcp-storage-managers(Download)
                upgraded = False
                matchSCSIid = False
                for file in filter(self.iscsi.match_lun, util.listdir(self.iscsi.path)):
                    path = os.path.join(self.iscsi.path,file)
                    if not util.wait_for_path(path, ISCSISR.MAX_TIMEOUT):

src/x/c/xcp-storage-managers-HEAD/drivers/ISCSISR.py   xcp-storage-managers(Download)
    def _loadvdis(self):
        count = 0
        if not os.path.exists(self.path):
            return 0
        for file in filter(self.match_lun, util.listdir(self.path)):
    def print_LUNs(self):
        self.LUNs = {}
        if os.path.exists(self.path):
            for file in util.listdir(self.path):
                if file.find("LUN") != -1 and file.find("_") == -1:

src/x/c/xcp-storage-managers-HEAD/drivers/FileSR.py   xcp-storage-managers(Download)
        try:
            if util.ioretry(lambda: util.pathexists(self.path)):
                if len(util.ioretry(lambda: util.listdir(self.path))) != 0:
                    raise xs_errors.XenError('SRExists')
            else:
 
                # remove everything else, there are no vdi's
                for name in util.ioretry(lambda: util.listdir(self.path)):
                    fullpath =  os.path.join(self.path,name)
                    try:
 
        # raw VDIs
        files = util.ioretry(lambda: util.listdir(self.path))
        for fn in files:
            if not fn.endswith(vhdutil.FILE_EXTN_RAW):

src/x/c/xcp-storage-managers-HEAD/drivers/NFSSR.py   xcp-storage-managers(Download)
        newpath = os.path.join(self.path, sr_uuid)
        if util.ioretry(lambda: util.pathexists(newpath)):
            if len(util.ioretry(lambda: util.listdir(newpath))) != 0:
                self.detach(sr_uuid)
                raise xs_errors.XenError('SRExists')

src/x/c/xcp-storage-managers-HEAD/drivers/scsiutil.py   xcp-storage-managers(Download)
def getSessionID(path):
    for line in filter(match_session, util.listdir(path)):
        return line.split('-')[-1]
 
def match_session(s):
def _genHostList(procname):
    # loop through and check all adapters
    ids = []
    try:
        for dir in util.listdir('/sys/class/scsi_host'):

src/x/c/xcp-storage-managers-HEAD/drivers/nfs.py   xcp-storage-managers(Download)
    dom.appendChild(element)
    for val in filter(util.match_uuid, util.ioretry( \
            lambda: util.listdir(path))):
        fullpath = os.path.join(path, val)
        if not util.ioretry(lambda: util.isdir(fullpath)):

src/x/c/xcp-storage-managers-HEAD/drivers/HBASR.py   xcp-storage-managers(Download)
            dom.appendChild(hbalist)
 
            hostlist = util.listdir("/sys/class/fc_host")
            for host in hostlist: 
 

src/f/e/fedup-HEAD/fedup/sysprep.py   fedup(Download)
from . import upgradeconf, upgradelink, upgraderoot
from .media import write_systemd_unit
from .util import listdir, mkdir_p, rm_f, rm_rf, is_selinux_enabled, kernelver
from .util import TemporaryDirectory
from .conf import Config
    updates = []
    try:
        updates = list(listdir(update_img_dir))
    except (IOError, OSError) as e:
        log.info("can't list update img dir %s: %s", update_img_dir, e.strerror)

src/x/c/xcp-storage-managers-HEAD/XenCert/StorageHandlerUtil.py   xcp-storage-managers(Download)
	deviceToLun = {}
	deviceToScsiId = {}
        for file in util.listdir(path):
	    realPath = os.path.realpath(os.path.join(path, file))
	    if file.find("LUN") == 0 and file.find("_") == -1:		

  1 | 2  Next