Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/x/c/xcp-storage-managers-HEAD/drivers/ISOSR.py   xcp-storage-managers(Download)
 
        # Create the mountpoint if it's not already there
        if not util.isdir(self.mountpoint):
            util.makedirs(self.mountpoint)
 
    def scan(self, sr_uuid):
        """Scan: see _loadvdis"""
        if not util.isdir(self.path):
            raise xs_errors.XenError('SRUnavailable', \
                    opterr = 'no such directory %s' % self.path)            

src/x/c/xcp-storage-managers-HEAD/drivers/FileSR.py   xcp-storage-managers(Download)
    def _checkpath(self, path):
        try:
            if util.ioretry(lambda: util.pathexists(path)):
                if util.ioretry(lambda: util.isdir(path)):
                    return True

src/x/c/xcp-storage-managers-HEAD/drivers/nfs.py   xcp-storage-managers(Download)
def soft_mount(mountpoint, remoteserver, remotepath, transport):
    """Mount the remote NFS export at 'mountpoint'"""
    try:
        if not util.ioretry(lambda: util.isdir(mountpoint)):
            util.ioretry(lambda: util.makedirs(mountpoint))
            lambda: util.listdir(path))):
        fullpath = os.path.join(path, val)
        if not util.ioretry(lambda: util.isdir(fullpath)):
            continue
 

src/x/c/xcp-storage-managers-HEAD/tests/faultinjection/NFSSR.py   xcp-storage-managers(Download)
            try:
                # make a mountpoint:
                if not util.ioretry(lambda: util.isdir(self.path)):
                    util.ioretry(lambda: util.makedirs(self.path))
 

src/x/c/xcp-storage-managers-HEAD/tests/faultinjection/FileSR.py   xcp-storage-managers(Download)
    def _checkpath(self, path):
        try:
            if util.ioretry(lambda: util.pathexists(path)):
                if util.ioretry(lambda: util.isdir(path)):
                    return True