Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for pathJoin (5.14 sec)

  1. cmd/os-reliable_test.go

    	}
    
    	if err = mkdirAll(pathJoin(path, "testvolume1"), 0o777, ""); err != nil {
    		t.Fatal(err)
    	}
    	if err = renameAll("", "foo", ""); err != errInvalidArgument {
    		t.Fatal(err)
    	}
    	if err = renameAll("foo", "", ""); err != errInvalidArgument {
    		t.Fatal(err)
    	}
    	if err = renameAll(pathJoin(path, "testvolume1"), pathJoin(path, "testvolume2"), ""); err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. cmd/config.go

    	historyFile := pathJoin(minioConfigHistoryPrefix, uuidKV+kvPrefix)
    	data, err := readConfig(ctx, objAPI, historyFile)
    	if err != nil {
    		return nil, err
    	}
    
    	return decryptData(data, historyFile)
    }
    
    func saveServerConfigHistory(ctx context.Context, objAPI ObjectLayer, kv []byte) error {
    	uuidKV := mustGetUUID() + kvPrefix
    	historyFile := pathJoin(minioConfigHistoryPrefix, uuidKV)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Aug 23 10:07:06 GMT 2023
    - 6K bytes
    - Viewed (0)
  3. cmd/untar.go

    			if o.ignoreDirs {
    				continue
    			}
    			name = trimLeadingSlash(pathJoin(name, slashSeparator))
    		case tar.TypeReg, tar.TypeChar, tar.TypeBlock, tar.TypeFifo, tar.TypeGNUSparse: // = regular
    			name = trimLeadingSlash(path.Clean(name))
    		default:
    			// ignore symlink'ed
    			continue
    		}
    		if o.prefixAll != "" {
    			name = pathJoin(o.prefixAll, name)
    		}
    
    		// Do small files async
    		n++
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. cmd/os_windows.go

    			continue
    		}
    
    		var typ os.FileMode // regular file
    		switch {
    		case data.FileAttributes&syscall.FILE_ATTRIBUTE_REPARSE_POINT != 0:
    			// Reparse point is a symlink
    			fi, err := os.Stat(pathJoin(dirPath, name))
    			if err != nil {
    				// It got deleted in the meantime, not found
    				// or returns too many symlinks ignore this
    				// file/directory.
    				if osIsNotExist(err) || isSysErrPathNotFound(err) ||
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  5. cmd/os_other.go

    			}
    			err = osErrToFileErr(err)
    			if err == errFileNotFound {
    				return nil
    			}
    			return err
    		}
    		for _, fi := range fis {
    			if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
    				fi, err = Stat(pathJoin(dirPath, fi.Name()))
    				if err != nil {
    					// It got deleted in the meantime, not found
    					// or returns too many symlinks ignore this
    					// file/directory.
    					if osIsNotExist(err) || isSysErrPathNotFound(err) ||
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
  6. cmd/speedtest.go

    	localPaths := globalEndpoints.LocalDisksPaths()
    	var ignoredPaths []string
    	paths := func() (tmpPaths []string) {
    		for _, lp := range localPaths {
    			if _, err := Lstat(pathJoin(lp, minioMetaBucket, formatConfigFile)); err == nil {
    				tmpPaths = append(tmpPaths, pathJoin(lp, minioMetaTmpBucket))
    			} else {
    				// Use dperf on only formatted drives.
    				ignoredPaths = append(ignoredPaths, lp)
    			}
    		}
    		return tmpPaths
    	}()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. cmd/bucket-policy.go

    		tag, _ := tags.ParseObjectTags(userTags)
    		if tag != nil {
    			tagMap := tag.ToMap()
    			keys := make([]string, 0, len(tagMap))
    			for k, v := range tagMap {
    				args[pathJoin("ExistingObjectTag", k)] = []string{v}
    				args[pathJoin("RequestObjectTag", k)] = []string{v}
    				keys = append(keys, k)
    			}
    			args["RequestObjectTagKeys"] = keys
    		}
    	}
    
    	for _, objLock := range []string{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  8. cmd/os_unix.go

    		// Fallback for filesystems (like old XFS) that don't
    		// support Dirent.Type and have DT_UNKNOWN (0) there
    		// instead.
    		if typ == unexpectedFileMode || typ&os.ModeSymlink == os.ModeSymlink {
    			fi, err := Stat(pathJoin(dirPath, string(name)))
    			if err != nil {
    				// It got deleted in the meantime, not found
    				// or returns too many symlinks ignore this
    				// file/directory.
    				if osIsNotExist(err) || isSysErrPathNotFound(err) ||
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  9. cmd/namespace-lock.go

    }
    
    // Lock the namespace resource.
    func (n *nsLockMap) lock(ctx context.Context, volume string, path string, lockSource, opsID string, readLock bool, timeout time.Duration) (locked bool) {
    	resource := pathJoin(volume, path)
    
    	n.lockMapMutex.Lock()
    	nsLk, found := n.lockMap[resource]
    	if !found {
    		nsLk = &nsLock{
    			LRWMutex: lsync.NewLRWMutex(),
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  10. cmd/xl-storage_unix_test.go

    	}
    
    	// Attempt to create a file to verify the permissions later.
    	// AppendFile creates file with 0666 perms.
    	if err = disk.AppendFile(context.Background(), testCase.volName, pathJoin("hello-world.txt", xlStorageFormatFile), []byte("Hello World")); err != nil {
    		t.Fatalf("Create a file `test` failed with %s expected to pass.", err)
    	}
    
    	// CheckFile - stat the file.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 25 19:37:26 GMT 2022
    - 3.4K bytes
    - Viewed (0)
Back to top