@@ -46,7 +46,7 @@ pub const GetAppDataDirError = @import("fs/get_app_data_dir.zig").GetAppDataDirE
4646/// The byte count includes room for a null sentinel byte.
4747///
4848/// * On Windows, `[]u8` file paths are encoded as
49- /// [WTF-8](https://simonsapin.github.io/ wtf-8/).
49+ /// [WTF-8](https://wtf-8.codeberg.page /).
5050/// * On WASI, `[]u8` file paths are encoded as valid UTF-8.
5151/// * On other platforms, `[]u8` file paths are opaque sequences of bytes with
5252/// no particular encoding.
@@ -68,7 +68,7 @@ pub const max_path_bytes = switch (native_os) {
6868/// operations are likely to fit into a `u8` array of this length, but
6969/// (depending on the platform) this assumption may not hold for every configuration.
7070/// The byte count does not include a null sentinel byte.
71- /// On Windows, `[]u8` file name components are encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
71+ /// On Windows, `[]u8` file name components are encoded as [WTF-8](https://wtf-8.codeberg.page /).
7272/// On WASI, file name components are encoded as valid UTF-8.
7373/// On other platforms, `[]u8` components are an opaque sequence of bytes with no particular encoding.
7474pub const max_name_bytes = switch (native_os ) {
@@ -100,7 +100,7 @@ pub const base64_decoder = base64.Base64Decoder.init(base64_alphabet, null);
100100/// Same as `Dir.updateFile`, except asserts that both `source_path` and `dest_path`
101101/// are absolute. See `Dir.updateFile` for a function that operates on both
102102/// absolute and relative paths.
103- /// On Windows, both paths should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
103+ /// On Windows, both paths should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
104104/// On WASI, both paths should be encoded as valid UTF-8.
105105/// On other platforms, both paths are an opaque sequence of bytes with no particular encoding.
106106pub fn updateFileAbsolute (
@@ -117,7 +117,7 @@ pub fn updateFileAbsolute(
117117/// Same as `Dir.copyFile`, except asserts that both `source_path` and `dest_path`
118118/// are absolute. See `Dir.copyFile` for a function that operates on both
119119/// absolute and relative paths.
120- /// On Windows, both paths should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
120+ /// On Windows, both paths should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
121121/// On WASI, both paths should be encoded as valid UTF-8.
122122/// On other platforms, both paths are an opaque sequence of bytes with no particular encoding.
123123pub fn copyFileAbsolute (
@@ -134,7 +134,7 @@ pub fn copyFileAbsolute(
134134/// Create a new directory, based on an absolute path.
135135/// Asserts that the path is absolute. See `Dir.makeDir` for a function that operates
136136/// on both absolute and relative paths.
137- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
137+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
138138/// On WASI, `absolute_path` should be encoded as valid UTF-8.
139139/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
140140pub fn makeDirAbsolute (absolute_path : []const u8 ) ! void {
@@ -155,7 +155,7 @@ pub fn makeDirAbsoluteW(absolute_path_w: [*:0]const u16) !void {
155155}
156156
157157/// Same as `Dir.deleteDir` except the path is absolute.
158- /// On Windows, `dir_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
158+ /// On Windows, `dir_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
159159/// On WASI, `dir_path` should be encoded as valid UTF-8.
160160/// On other platforms, `dir_path` is an opaque sequence of bytes with no particular encoding.
161161pub fn deleteDirAbsolute (dir_path : []const u8 ) ! void {
@@ -176,7 +176,7 @@ pub fn deleteDirAbsoluteW(dir_path: [*:0]const u16) !void {
176176}
177177
178178/// Same as `Dir.rename` except the paths are absolute.
179- /// On Windows, both paths should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
179+ /// On Windows, both paths should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
180180/// On WASI, both paths should be encoded as valid UTF-8.
181181/// On other platforms, both paths are an opaque sequence of bytes with no particular encoding.
182182pub fn renameAbsolute (old_path : []const u8 , new_path : []const u8 ) ! void {
@@ -238,7 +238,7 @@ pub fn defaultWasiCwd() std.os.wasi.fd_t {
238238/// See `openDirAbsoluteZ` for a function that accepts a null-terminated path.
239239///
240240/// Asserts that the path parameter has no null bytes.
241- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
241+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
242242/// On WASI, `absolute_path` should be encoded as valid UTF-8.
243243/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
244244pub fn openDirAbsolute (absolute_path : []const u8 , flags : Dir.OpenOptions ) File.OpenError ! Dir {
@@ -263,7 +263,7 @@ pub fn openDirAbsoluteW(absolute_path_c: [*:0]const u16, flags: Dir.OpenOptions)
263263/// operates on both absolute and relative paths.
264264/// Asserts that the path parameter has no null bytes. See `openFileAbsoluteZ` for a function
265265/// that accepts a null-terminated path.
266- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
266+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
267267/// On WASI, `absolute_path` should be encoded as valid UTF-8.
268268/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
269269pub fn openFileAbsolute (absolute_path : []const u8 , flags : File.OpenFlags ) File.OpenError ! File {
@@ -288,7 +288,7 @@ pub fn openFileAbsoluteW(absolute_path_w: []const u16, flags: File.OpenFlags) Fi
288288/// For example, instead of testing if a file exists and then opening it, just
289289/// open it and handle the error for file not found.
290290/// See `accessAbsoluteZ` for a function that accepts a null-terminated path.
291- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
291+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
292292/// On WASI, `absolute_path` should be encoded as valid UTF-8.
293293/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
294294pub fn accessAbsolute (absolute_path : []const u8 , flags : File.OpenFlags ) Dir.AccessError ! void {
@@ -312,7 +312,7 @@ pub fn accessAbsoluteW(absolute_path: [*:0]const u16, flags: File.OpenFlags) Dir
312312/// operates on both absolute and relative paths.
313313/// Asserts that the path parameter has no null bytes. See `createFileAbsoluteC` for a function
314314/// that accepts a null-terminated path.
315- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
315+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
316316/// On WASI, `absolute_path` should be encoded as valid UTF-8.
317317/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
318318pub fn createFileAbsolute (absolute_path : []const u8 , flags : File.CreateFlags ) File.OpenError ! File {
@@ -336,7 +336,7 @@ pub fn createFileAbsoluteW(absolute_path_w: [*:0]const u16, flags: File.CreateFl
336336/// Asserts that the path is absolute. See `Dir.deleteFile` for a function that
337337/// operates on both absolute and relative paths.
338338/// Asserts that the path parameter has no null bytes.
339- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
339+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
340340/// On WASI, `absolute_path` should be encoded as valid UTF-8.
341341/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
342342pub fn deleteFileAbsolute (absolute_path : []const u8 ) Dir.DeleteFileError ! void {
@@ -361,7 +361,7 @@ pub fn deleteFileAbsoluteW(absolute_path_w: [*:0]const u16) Dir.DeleteFileError!
361361/// Asserts that the path is absolute. See `Dir.deleteTree` for a function that
362362/// operates on both absolute and relative paths.
363363/// Asserts that the path parameter has no null bytes.
364- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
364+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
365365/// On WASI, `absolute_path` should be encoded as valid UTF-8.
366366/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
367367pub fn deleteTreeAbsolute (absolute_path : []const u8 ) ! void {
@@ -379,7 +379,7 @@ pub fn deleteTreeAbsolute(absolute_path: []const u8) !void {
379379}
380380
381381/// Same as `Dir.readLink`, except it asserts the path is absolute.
382- /// On Windows, `pathname` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
382+ /// On Windows, `pathname` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
383383/// On WASI, `pathname` should be encoded as valid UTF-8.
384384/// On other platforms, `pathname` is an opaque sequence of bytes with no particular encoding.
385385pub fn readLinkAbsolute (pathname : []const u8 , buffer : * [max_path_bytes ]u8 ) ! []u8 {
@@ -405,7 +405,7 @@ pub fn readLinkAbsoluteZ(pathname_c: [*:0]const u8, buffer: *[max_path_bytes]u8)
405405/// one; the latter case is known as a dangling link.
406406/// If `sym_link_path` exists, it will not be overwritten.
407407/// See also `symLinkAbsoluteZ` and `symLinkAbsoluteW`.
408- /// On Windows, both paths should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
408+ /// On Windows, both paths should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
409409/// On WASI, both paths should be encoded as valid UTF-8.
410410/// On other platforms, both paths are an opaque sequence of bytes with no particular encoding.
411411pub fn symLinkAbsolute (
@@ -537,7 +537,7 @@ pub fn selfExePathAlloc(allocator: Allocator) ![]u8 {
537537/// This function may return an error if the current executable
538538/// was deleted after spawning.
539539/// Returned value is a slice of out_buffer.
540- /// On Windows, the result is encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
540+ /// On Windows, the result is encoded as [WTF-8](https://wtf-8.codeberg.page /).
541541/// On other platforms, the result is an opaque sequence of bytes with no particular encoding.
542542///
543543/// On Linux, depends on procfs being mounted. If the currently executing binary has
@@ -677,7 +677,7 @@ pub fn selfExeDirPathAlloc(allocator: Allocator) ![]u8 {
677677
678678/// Get the directory path that contains the current executable.
679679/// Returned value is a slice of out_buffer.
680- /// On Windows, the result is encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
680+ /// On Windows, the result is encoded as [WTF-8](https://wtf-8.codeberg.page /).
681681/// On other platforms, the result is an opaque sequence of bytes with no particular encoding.
682682pub fn selfExeDirPath (out_buffer : []u8 ) SelfExePathError ! []const u8 {
683683 const self_exe_path = try selfExePath (out_buffer );
@@ -687,7 +687,7 @@ pub fn selfExeDirPath(out_buffer: []u8) SelfExePathError![]const u8 {
687687}
688688
689689/// `realpath`, except caller must free the returned memory.
690- /// On Windows, the result is encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
690+ /// On Windows, the result is encoded as [WTF-8](https://wtf-8.codeberg.page /).
691691/// On other platforms, the result is an opaque sequence of bytes with no particular encoding.
692692/// See also `Dir.realpath`.
693693pub fn realpathAlloc (allocator : Allocator , pathname : []const u8 ) ! []u8 {
0 commit comments