restic/internal/fs
Michael Eischer 3a995172b7 fs: rewrite Reader to build fs tree up front
This adds proper support for filenames that include directories. For
example, `/foo/bar` would result in an error when trying to open `/foo`.

The directory tree is now build upfront. This ensures let's the
directory tree construction be handled only once. All accessors then
only have to look up the constructed directory entries.
2025-04-11 21:37:40 +02:00
..
const.go fs: Add O_NONBLOCK 2018-04-30 15:34:58 +02:00
const_unix.go fs: stricter enforcement to only call readdir on a directory 2024-11-16 12:56:23 +01:00
const_windows.go fs: fix O_NOFOLLOW for metadata handles on Windows 2024-11-16 15:38:56 +01:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
ea_windows.go Remove unnecessary type conversions. 2025-03-22 18:20:30 +00:00
ea_windows_test.go fs: move getVolumePathName function 2024-11-01 19:03:45 +01:00
file.go fs: fix O_NOFOLLOW for metadata handles on Windows 2024-11-16 15:38:56 +01:00
file_unix.go fs: unexport a several windows functions 2024-08-31 18:40:36 +02:00
file_unix_test.go fs: stricter enforcement to only call readdir on a directory 2024-11-16 12:56:23 +01:00
file_windows.go Remove unnecessary type conversions. 2025-03-22 18:20:30 +00:00
file_windows_test.go Add simple test for fs.TempFile on windows 2022-04-09 23:37:58 +02:00
fs_local.go fs: inline ExtendedStat 2024-11-30 16:19:16 +01:00
fs_local_test.go fs: remove os.FileInfo from fs.ExtendedFileInfo 2024-11-30 17:07:36 +01:00
fs_local_unix_test.go fs: test File implementation of Local FS 2024-11-16 16:09:17 +01:00
fs_local_vss.go fs: inline ExtendedStat 2024-11-30 16:19:16 +01:00
fs_local_vss_test.go Remove import aliases that match package name. 2025-03-22 18:20:30 +00:00
fs_reader.go fs: rewrite Reader to build fs tree up front 2025-04-11 21:37:40 +02:00
fs_reader_command.go fs: fix comments 2024-08-31 18:40:36 +02:00
fs_reader_command_test.go fix panic in fs_reader 2024-08-03 19:08:04 +00:00
fs_reader_test.go fs: rewrite Reader to build fs tree up front 2025-04-11 21:37:40 +02:00
fs_track.go fs / archiver: convert to handle based interface 2024-11-16 12:56:23 +01:00
interface.go fs: inline ExtendedStat 2024-11-30 16:19:16 +01:00
mknod_unix.go fs: Include filename in mknod errors 2024-10-05 10:56:39 +02:00
node.go restore: exclude/include xattrs 2025-01-10 15:13:40 -05:00
node_freebsd.go fs: Include filename in mknod errors 2024-10-05 10:56:39 +02:00
node_linux.go fs: Refactor UtimesNano replacements 2024-10-19 12:04:09 +02:00
node_linux_test.go fs: Refactor UtimesNano replacements 2024-10-19 12:04:09 +02:00
node_noxattr.go update nodeRestoreExtendedAttributes() for win 2025-01-10 15:13:44 -05:00
node_test.go update nodeRestoreExtendedAttributes() for win 2025-01-10 15:13:44 -05:00
node_unix.go fs: deduplicate placeholders for generic and xattrs 2024-11-16 16:09:17 +01:00
node_unix_notlinux.go fs: Refactor UtimesNano replacements 2024-10-19 12:04:09 +02:00
node_unix_test.go fs / archiver: convert to handle based interface 2024-11-16 12:56:23 +01:00
node_windows.go update nodeRestoreExtendedAttributes() for win 2025-01-10 15:13:44 -05:00
node_windows_test.go update nodeRestoreExtendedAttributes() for win 2025-01-10 15:13:44 -05:00
node_xattr.go restore: exclude/include xattrs 2025-01-10 15:13:40 -05:00
node_xattr_all_test.go restore: fix xattr filter test on windows 2025-01-18 23:07:39 +01:00
node_xattr_test.go Enable xattr support, on NetBSD 10+ 2024-12-18 16:52:44 +00:00
path_prefix.go fs: Make HasPathPrefix work with relative paths 2018-01-05 17:38:52 +01:00
path_prefix_test.go fs: Make HasPathPrefix work with relative paths 2018-01-05 17:38:52 +01:00
preallocate_darwin.go Move PreallocateFile to fs package 2023-06-09 11:49:06 +03:00
preallocate_linux.go fs: retry preallocate on Linux if interrupted by signal 2024-09-07 16:39:40 +02:00
preallocate_other.go Move PreallocateFile to fs package 2023-06-09 11:49:06 +03:00
preallocate_test.go Move PreallocateFile to fs package 2023-06-09 11:49:06 +03:00
sd_windows.go Revert a fix that broke compile of sd_windows.go. 2025-03-22 18:27:09 +00:00
sd_windows_test.go fs: unexport a several windows functions 2024-08-31 18:40:36 +02:00
sd_windows_test_helpers.go fs: unexport a several windows functions 2024-08-31 18:40:36 +02:00
setflags_linux.go Set O_NOATIME flag on Linux 2022-02-06 15:00:34 +01:00
setflags_linux_test.go minimize usage of internal/fs in tests 2024-08-31 18:20:41 +02:00
setflags_other.go Rename unused parameters to '_'. 2025-03-22 18:20:30 +00:00
stat.go fs: remove os.FileInfo from fs.ExtendedFileInfo 2024-11-30 17:07:36 +01:00
stat_bsd.go backup: allow excluding online-only cloud files 2025-01-13 21:11:23 +01:00
stat_test.go use consistent alias for interal/test package 2024-03-29 00:24:03 +01:00
stat_unix.go backup: allow excluding online-only cloud files 2025-01-13 21:11:23 +01:00
stat_windows.go backup: allow excluding online-only cloud files 2025-01-13 21:11:23 +01:00
stat_windows_test.go backup: allow excluding online-only cloud files 2025-01-13 21:11:23 +01:00
vss.go fs: unexport a several windows functions 2024-08-31 18:40:36 +02:00
vss_windows.go Remove import aliases that match package name. 2025-03-22 18:20:30 +00:00