Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for isdir (0.14 sec)

  1. cmd/ftp-server-driver.go

    			return &minioFileInfo{
    				p:     pathClean(object),
    				info:  minio.ObjectInfo{Key: object},
    				isDir: true,
    			}, nil
    		}
    		return nil, err
    	}
    
    	isDir := strings.HasSuffix(objInfo.Key, SlashSeparator)
    	return &minioFileInfo{
    		p:     pathClean(object),
    		info:  objInfo,
    		isDir: isDir,
    	}, nil
    }
    
    // ListDir implements ftpDriver
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  2. cmd/metacache-entries.go

    	// Name should match...
    	if e.name != other.name {
    		if e.name < other.name {
    			return e, false
    		}
    		return other, false
    	}
    
    	if other.isDir() || e.isDir() {
    		if e.isDir() {
    			return e, other.isDir() == e.isDir()
    		}
    		return other, other.isDir() == e.isDir()
    	}
    	eVers, eErr := e.xlmeta()
    	oVers, oErr := other.xlmeta()
    	if eErr != nil || oErr != nil {
    		return nil, false
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  3. api/next/50102.txt

    pkg archive/tar, type FileInfoNames interface { Gname, IsDir, ModTime, Mode, Name, Size, Sys, Uname } #50102
    pkg archive/tar, type FileInfoNames interface, Gname() (string, error) #50102
    pkg archive/tar, type FileInfoNames interface, IsDir() bool #50102
    pkg archive/tar, type FileInfoNames interface, ModTime() time.Time #50102
    pkg archive/tar, type FileInfoNames interface, Mode() fs.FileMode #50102
    pkg archive/tar, type FileInfoNames interface, Name() string #50102
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 686 bytes
    - Viewed (0)
  4. cmd/sftp-server-driver.go

    					isDir: true,
    				}}, nil
    			}
    			return nil, err
    		}
    
    		isDir := strings.HasSuffix(objInfo.Key, SlashSeparator)
    		return listerAt{&minioFileInfo{
    			p:     pathClean(object),
    			info:  objInfo,
    			isDir: isDir,
    		}}, nil
    	}
    
    	return nil, NotImplemented{}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  5. cmd/os_unix.go

    			}
    
    			// Ignore symlinked directories.
    			if !opts.followDirSymlink && typ&os.ModeSymlink == os.ModeSymlink && fi.IsDir() {
    				continue
    			}
    
    			typ = fi.Mode() & os.ModeType
    		}
    
    		var nameStr string
    		if typ.IsRegular() {
    			nameStr = string(name)
    		} else if typ.IsDir() {
    			// Use temp buffer to append a slash to avoid string concat.
    			tmp = tmp[:len(name)+1]
    			copy(tmp, name)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_templates/test_tutorial001.py

    import os
    import shutil
    
    from fastapi.testclient import TestClient
    
    
    def test_main():
        if os.path.isdir("./static"):  # pragma: nocover
            shutil.rmtree("./static")
        if os.path.isdir("./templates"):  # pragma: nocover
            shutil.rmtree("./templates")
        shutil.copytree("./docs_src/templates/templates/", "./templates")
        shutil.copytree("./docs_src/templates/static/", "./static")
        from docs_src.templates.tutorial001 import app
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 22:25:37 GMT 2024
    - 910 bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

          return;
        }
      } else if (S_ISDIR(st.st_mode)) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION, "target path is a directory");
        return;
      }
    
      // We cannot rename directories yet, so prevent this.
      if (stat(src, &st) != 0) {
        TF_SetStatusFromIOError(status, errno, src);
        return;
      } else if (S_ISDIR(st.st_mode)) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  8. istioctl/pkg/validate/validate.go

    				continue
    			}
    			isDir = fi.IsDir()
    		}
    
    		if !isDir {
    			processFile(filename)
    			processedFiles[filename] = true
    			continue
    		}
    		if err := processDirectory(filename, func(path string) {
    			processFile(path)
    			processedFiles[path] = true
    		}); err != nil {
    			errs = multierror.Append(errs, err)
    		}
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. cmd/object-api-datatypes.go

    	ModTime time.Time
    
    	// Total object size.
    	Size int64
    
    	// Actual size is the real size of the object uploaded by client.
    	ActualSize *int64
    
    	// IsDir indicates if the object is prefix.
    	IsDir bool
    
    	// Hex encoded unique entity tag of the object.
    	ETag string
    
    	// Version ID of this object.
    	VersionID string
    
    	// IsLatest indicates if this is the latest current version
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  10. cni/pkg/install/binaries.go

    	copiedFilenames := sets.String{}
    	srcFiles, err := os.ReadDir(srcDir)
    	if err != nil {
    		return copiedFilenames, err
    	}
    
    	for _, f := range srcFiles {
    		if f.IsDir() {
    			continue
    		}
    
    		filename := f.Name()
    		srcFilepath := filepath.Join(srcDir, filename)
    
    		for _, targetDir := range targetDirs {
    			if err := file.AtomicCopy(srcFilepath, targetDir, filename); err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Dec 11 19:10:54 GMT 2023
    - 1.5K bytes
    - Viewed (0)
Back to top