Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for OpenFile (0.18 sec)

  1. cmd/xl-storage.go

    		}
    	}
    
    	return w, nil
    }
    
    func (s *xlStorage) openFileSync(filePath string, mode int, skipParent string) (f *os.File, err error) {
    	return s.openFile(filePath, mode|writeMode, skipParent)
    }
    
    func (s *xlStorage) openFile(filePath string, mode int, skipParent string) (f *os.File, err error) {
    	if skipParent == "" {
    		skipParent = s.drivePath
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  2. internal/logger/logrotate.go

    			return nil, fmt.Errorf("Failed to create log file: %w", err)
    		}
    	}
    
    	go w.listen()
    
    	return w, nil
    }
    
    func newFile(path string) (*os.File, error) {
    	return os.OpenFile(path, os.O_WRONLY|os.O_TRUNC|os.O_CREATE|os.O_SYNC, 0o666)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 11:38:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    			defer zippedFile.Close()
    			extractedFilePath := filepath.Join(targetDir, file.Name)
    			if file.FileInfo().IsDir() {
    				return os.MkdirAll(extractedFilePath, file.Mode())
    			}
    			outputFile, err := os.OpenFile(extractedFilePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, file.Mode())
    			if err != nil {
    				return err
    			}
    			defer outputFile.Close()
    			_, err = io.Copy(outputFile, zippedFile)
    			return err
    		}()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
Back to top