Movatterモバイル変換


[0]ホーム

URL:


atomicfile

package
v1.92.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:4Imported by:44

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package atomicfile contains code related to writing to filesystemsatomically.

This package should be considered internal; its API is not stable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcRenameadded inv1.86.0

func Rename(srcFile, dstFilestring)error

Rename srcFile to dstFile, similar toos.Rename but preserving fileattributes and ACLs on Windows.

funcWriteFile

func WriteFile(filenamestring, data []byte, permos.FileMode) (errerror)

WriteFile writes data to filename+some suffix, then renames it into filename.The perm argument is ignored on Windows, but if the target filename alreadyexists then the target file's attributes and ACLs are preserved. If the targetfilename already exists but is not a regular file, WriteFile returns an error.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp