| ... | @@ -1442,7 +1442,7 @@ pub fn createFileAbsoluteW(absolute_path_w: [*:0]const u16, flags: File.CreateFl | ... | @@ -1442,7 +1442,7 @@ pub fn createFileAbsoluteW(absolute_path_w: [*:0]const u16, flags: File.CreateFl |
| 1442 | /// Asserts that the path is absolute. See `Dir.deleteFile` for a function that | 1442 | /// Asserts that the path is absolute. See `Dir.deleteFile` for a function that |
| 1443 | /// operates on both absolute and relative paths. | 1443 | /// operates on both absolute and relative paths. |
| 1444 | /// Asserts that the path parameter has no null bytes. | 1444 | /// Asserts that the path parameter has no null bytes. |
| 1445 | pub fn deleteFileAbsolute(absolute_path: []const u8) DeleteFileError!void { | 1445 | pub fn deleteFileAbsolute(absolute_path: []const u8) Dir.DeleteFileError!void { |
| 1446 | assert(path.isAbsolute(absolute_path)); | 1446 | assert(path.isAbsolute(absolute_path)); |
| 1447 | return cwd().deleteFile(absolute_path); | 1447 | return cwd().deleteFile(absolute_path); |
| 1448 | } | 1448 | } |
| ... | @@ -1450,13 +1450,13 @@ pub fn deleteFileAbsolute(absolute_path: []const u8) DeleteFileError!void { | ... | @@ -1450,13 +1450,13 @@ pub fn deleteFileAbsolute(absolute_path: []const u8) DeleteFileError!void { |
| 1450 | pub const deleteFileAbsoluteC = @compileError("deprecated: renamed to deleteFileAbsoluteZ"); | 1450 | pub const deleteFileAbsoluteC = @compileError("deprecated: renamed to deleteFileAbsoluteZ"); |
| 1451 | | 1451 | |
| 1452 | /// Same as `deleteFileAbsolute` except the parameter is null-terminated. | 1452 | /// Same as `deleteFileAbsolute` except the parameter is null-terminated. |
| 1453 | pub fn deleteFileAbsoluteZ(absolute_path_c: [*:0]const u8) DeleteFileError!void { | 1453 | pub fn deleteFileAbsoluteZ(absolute_path_c: [*:0]const u8) Dir.DeleteFileError!void { |
| 1454 | assert(path.isAbsoluteZ(absolute_path_c)); | 1454 | assert(path.isAbsoluteZ(absolute_path_c)); |
| 1455 | return cwd().deleteFileZ(absolute_path_c); | 1455 | return cwd().deleteFileZ(absolute_path_c); |
| 1456 | } | 1456 | } |
| 1457 | | 1457 | |
| 1458 | /// Same as `deleteFileAbsolute` except the parameter is WTF-16 encoded. | 1458 | /// Same as `deleteFileAbsolute` except the parameter is WTF-16 encoded. |
| 1459 | pub fn deleteFileAbsoluteW(absolute_path_w: [*:0]const u16) DeleteFileError!void { | 1459 | pub fn deleteFileAbsoluteW(absolute_path_w: [*:0]const u16) Dir.DeleteFileError!void { |
| 1460 | assert(path.isAbsoluteWindowsW(absolute_path_w)); | 1460 | assert(path.isAbsoluteWindowsW(absolute_path_w)); |
| 1461 | return cwd().deleteFileW(absolute_path_w); | 1461 | return cwd().deleteFileW(absolute_path_w); |
| 1462 | } | 1462 | } |