Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 101 for is_dir (0.06 sec)

  1. src/archive/zip/writer.go

    		if err != nil {
    			return err
    		}
    		if !d.IsDir() && !info.Mode().IsRegular() {
    			return errors.New("zip: cannot add non-regular file")
    		}
    		h, err := FileInfoHeader(info)
    		if err != nil {
    			return err
    		}
    		h.Name = name
    		h.Method = Deflate
    		fw, err := w.CreateHeader(h)
    		if err != nil {
    			return err
    		}
    		if d.IsDir() {
    			return nil
    		}
    		f, err := fsys.Open(name)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. cmd/storage-interface.go

    	RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo, dstVolume, dstPath string, opts RenameOptions) (RenameDataResp, error)
    
    	// File operations.
    	ListDir(ctx context.Context, origvolume, volume, dirPath string, count int) ([]string, error)
    	ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. cmd/data-scanner.go

    					custom := make(map[string]string)
    					defer stopFn(custom)
    
    					if f.dataUsageScannerDebug {
    						console.Debugf(healObjectsPrefix+" resolved to: %v, dir: %v\n", entry.name, entry.isDir())
    					}
    
    					if entry.isDir() {
    						return
    					}
    
    					// We got an entry which we should be able to heal.
    					fiv, err := entry.fileInfoVersions(bucket)
    					if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  4. cmd/storage-rest-client.go

    	if err != nil {
    		return 0, err
    	}
    	defer xhttp.DrainBody(respBody)
    	n, err := io.ReadFull(respBody, buf)
    	return int64(n), toStorageErr(err)
    }
    
    // ListDir - lists a directory.
    func (client *storageRESTClient) ListDir(ctx context.Context, origvolume, volume, dirPath string, count int) (entries []string, err error) {
    	values := grid.NewMSS()
    	values.Set(storageRESTVolume, volume)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  5. api/except.txt

    pkg os, method (*PathError) Unwrap() error
    pkg os, method (FileMode) IsDir() bool
    pkg os, method (FileMode) IsRegular() bool
    pkg os, method (FileMode) Perm() FileMode
    pkg os, method (FileMode) String() string
    pkg os, type FileInfo interface { IsDir, ModTime, Mode, Name, Size, Sys }
    pkg os, type FileInfo interface, IsDir() bool
    pkg os, type FileInfo interface, ModTime() time.Time
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sun Jun 16 23:08:08 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  6. cmd/signature-v4-utils_test.go

    )
    
    func TestCheckValid(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	objLayer, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		t.Fatalf("unable initialize config file, %s", err)
    	}
    
    	initAllSubsystems(ctx)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 05 21:26:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/podcgroupns.go

    	return &PodNetnsEntry{
    		uid:     uid,
    		netns:   netns,
    		netnsfd: fd,
    		inode:   inode,
    	}, nil
    }
    
    func isProcess(entry fs.DirEntry) bool {
    	// check if it is a directory
    	if !entry.IsDir() {
    		return false
    	}
    
    	// check if it is a number
    	if strings.IndexFunc(entry.Name(), isNotNumber) != -1 {
    		return false
    	}
    	return true
    }
    
    func GetFd(f fs.File) (uintptr, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/archive/tar/tar_test.go

    		if err != nil {
    			t.Error(err)
    			continue
    		}
    		if strings.Contains(fi.Name(), "/") {
    			t.Errorf("FileInfo of %q contains slash: %q", v.h.Name, fi.Name())
    		}
    		name := path.Base(v.h.Name)
    		if fi.IsDir() {
    			name += "/"
    		}
    		if got, want := h2.Name, name; got != want {
    			t.Errorf("i=%d: Name: got %v, want %v", i, got, want)
    		}
    		if got, want := h2.Size, v.h.Size; got != want {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. src/archive/tar/writer.go

    		}
    		// TODO(#49580): Handle symlinks when fs.ReadLinkFS is available.
    		if !d.IsDir() && !info.Mode().IsRegular() {
    			return errors.New("tar: cannot add non-regular file")
    		}
    		h, err := FileInfoHeader(info, "")
    		if err != nil {
    			return err
    		}
    		h.Name = name
    		if err := tw.WriteHeader(h); err != nil {
    			return err
    		}
    		if d.IsDir() {
    			return nil
    		}
    		f, err := fsys.Open(name)
    		if err != nil {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. cmd/metacache-entries_test.go

    			want:     true,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.testName, func(t *testing.T) {
    			e := metaCacheEntry{
    				name: tt.entry,
    			}
    			if got := e.isInDir(tt.dir, tt.sep); got != tt.want {
    				t.Errorf("isInDir() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func Test_metaCacheEntries_resolve(t *testing.T) {
    	baseTime, err := time.Parse("2006/01/02", "2015/02/25")
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 31.6K bytes
    - Viewed (0)
Back to top