Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 958 for file (0.18 sec)

  1. internal/ioutil/read_file.go

    	OsOpen = os.Open
    	// OsOpenFile allows overriding default function.
    	OsOpenFile = os.OpenFile
    )
    
    // ReadFileWithFileInfo reads the named file and returns the contents.
    // A successful call returns err == nil, not err == EOF.
    // Because ReadFile reads the whole file, it does not treat an EOF from Read
    // as an error to be reported.
    func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 09 18:17:51 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  2. internal/ioutil/append-file_nix.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package ioutil
    
    import (
    	"io"
    	"os"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	flags := os.O_WRONLY | os.O_APPEND | os.O_CREATE
    	if osync {
    		flags |= os.O_SYNC
    	}
    	appendFile, err := os.OpenFile(dst, flags, 0o666)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  3. internal/ioutil/append-file_windows.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package ioutil
    
    import (
    	"io"
    	"os"
    
    	"github.com/minio/minio/internal/lock"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	appendFile, err := lock.Open(dst, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o666)
    	if err != nil {
    		return err
    	}
    	defer appendFile.Close()
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  4. internal/ioutil/read_file_noatime_supported.go

    //go:build !windows && !darwin && !freebsd
    // +build !windows,!darwin,!freebsd
    
    // Copyright (c) 2015-2021 MinIO, Inc.
    //
    // This file is part of MinIO Object Storage stack
    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as published by
    // the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 937 bytes
    - Viewed (0)
  5. docs/distributed/distributed-from-config-file.sh

    	echo "Cleaning up instances of MinIO"
    	pkill minio || true
    	pkill -9 minio || true
    	rm -rf /tmp/xl/ || true
    	rm -rf /tmp/minio.configfile.{1,2,3,4} || true
    }
    
    cleanup
    
    unset MINIO_KMS_KES_CERT_FILE
    unset MINIO_KMS_KES_KEY_FILE
    unset MINIO_KMS_KES_ENDPOINT
    unset MINIO_KMS_KES_KEY_NAME
    
    export MINIO_CI_CD=1
    
    if [ ! -f ./mc ]; then
    	os="$(uname -s)"
    	arch="$(uname -m)"
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. internal/ioutil/read_file_noatime_notsupported.go

    //go:build windows || darwin || freebsd
    // +build windows darwin freebsd
    
    // Copyright (c) 2015-2021 MinIO, Inc.
    //
    // This file is part of MinIO Object Storage stack
    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as published by
    // the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 893 bytes
    - Viewed (0)
  7. internal/s3select/json/preader_test.go

    			}
    			if err != io.EOF {
    				t.Fatalf("Reading failed with %s, %s", err, file.Name())
    			}
    		})
    	}
    }
    
    func BenchmarkPReader(b *testing.B) {
    	files, err := os.ReadDir("testdata")
    	if err != nil {
    		b.Fatal(err)
    	}
    	for _, file := range files {
    		b.Run(file.Name(), func(b *testing.B) {
    			f, err := os.ReadFile(filepath.Join("testdata", file.Name()))
    			if err != nil {
    				b.Fatal(err)
    			}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  8. cmd/s3-zip-handlers.go

    	)
    
    	// Always set this
    	listObjectsInfo.ContinuationToken = token
    
    	// Open and iterate through the files in the archive.
    	for _, file := range files {
    		objName := zipObjInfo.Name + archiveSeparator + file.Name
    		if objName <= startAfter || objName <= token {
    			continue
    		}
    		if strings.HasPrefix(objName, prefix) {
    			if count == maxKeys {
    				isTruncated = true
    				break
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  9. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 25 19:37:26 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  10. Dockerfile.release

    ENV MINIO_ACCESS_KEY_FILE=access_key \
        MINIO_SECRET_KEY_FILE=secret_key \
        MINIO_ROOT_USER_FILE=access_key \
        MINIO_ROOT_PASSWORD_FILE=secret_key \
        MINIO_KMS_SECRET_KEY_FILE=kms_master_key \
        MINIO_UPDATE_MINISIGN_PUBKEY="RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav" \
        MINIO_CONFIG_ENV_FILE=config.env \
        MC_CONFIG_DIR=/tmp/.mc
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 29 19:10:49 GMT 2024
    - 2.8K bytes
    - Viewed (1)
Back to top