Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for isdir (0.15 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. src/archive/zip/reader.go

    		i--
    	}
    	if i < 0 {
    		return ".", name, isDir
    	}
    	return name[:i], name[i+1:], isDir
    }
    
    var dotFile = &fileListEntry{name: "./", isDir: true}
    
    func (r *Reader) openLookup(name string) *fileListEntry {
    	if name == "." {
    		return dotFile
    	}
    
    	dir, elem, _ := split(name)
    	files := r.fileList
    	i := sort.Search(len(files), func(i int) bool {
    		idir, ielem, _ := split(files[i].name)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  4. cmd/object-api-getobjectinfo_test.go

    			}
    			if testCase.result.IsDir != result.IsDir {
    				t.Errorf("Test %d: %s: Expected IsDir flag of the object to be %v, but instead found it to be %v", i+1, instanceType, testCase.result.IsDir, result.IsDir)
    			}
    		}
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  5. 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)
  6. cmd/os_windows.go

    				// file/directory.
    				if osIsNotExist(err) || isSysErrPathNotFound(err) ||
    					isSysErrTooManySymlinks(err) {
    					continue
    				}
    				return err
    			}
    
    			if fi.IsDir() {
    				// Ignore symlinked directories.
    				continue
    			}
    
    			typ = fi.Mode()
    		case data.FileAttributes&syscall.FILE_ATTRIBUTE_DIRECTORY != 0:
    			typ = os.ModeDir
    		}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. cmd/os_other.go

    						isSysErrTooManySymlinks(err) {
    						continue
    					}
    					return nil, err
    				}
    
    				// Ignore symlinked directories.
    				if !opts.followDirSymlink && fi.IsDir() {
    					continue
    				}
    			}
    
    			if fi.IsDir() {
    				// Append SlashSeparator instead of "\" so that sorting is achieved as expected.
    				entries = append(entries, fi.Name()+SlashSeparator)
    			} else if fi.Mode().IsRegular() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top