Documentation ¶
Overview ¶
Package atomicfile provides wrappers for atomically writing files in a manner compatible with long filenames.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybePrefixLongFilenameOnWindows ¶
MaybePrefixLongFilenameOnWindows prefixes the given filename with \\?\ on Windows if the filename is longer than 260 characters, which is required to be able to use some low-level Windows APIs. Because long file names have certain limitations: - we must replace forward slashes with backslashes. - dummy path element (\.\) must be removed.
Relative paths are always limited to a total of MAX_PATH characters: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.