| 1 | package billyscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ |
| 2 | |
| 3 | import ( |
| 4 | "errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/" |
| 5 | "ioscip-go gomod github.com/golang/go/src go1.25.0 io/" |
| 6 | "io/fsscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/" |
| 7 | "timescip-go gomod github.com/golang/go/src go1.25.0 time/" |
| 8 | ) |
| 9 | |
| 10 | var ( |
| 11 | ErrReadOnlyscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ErrReadOnly. = errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/.Newscip-go gomod github.com/golang/go/src go1.25.0 errors/New().("read-only filesystem") |
| 12 | ErrNotSupportedscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ErrNotSupported. = errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/.Newscip-go gomod github.com/golang/go/src go1.25.0 errors/New().("feature not supported") |
| 13 | ErrCrossedBoundaryscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ErrCrossedBoundary. = errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/.Newscip-go gomod github.com/golang/go/src go1.25.0 errors/New().("chroot boundary crossed") |
| 14 | ErrBaseDirCannotBeRemovedscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ErrBaseDirCannotBeRemoved. = errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/.Newscip-go gomod github.com/golang/go/src go1.25.0 errors/New().("base dir cannot be removed") |
| 15 | ErrBaseDirCannotBeRenamedscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ErrBaseDirCannotBeRenamed. = errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/.Newscip-go gomod github.com/golang/go/src go1.25.0 errors/New().("base dir cannot be renamed") |
| 16 | ) |
| 17 | |
| 18 | // Capability holds the supported features of a billy filesystem. This does |
| 19 | // not mean that the capability has to be supported by the underlying storage. |
| 20 | // For example, a billy filesystem may support WriteCapability but the |
| 21 | // storage be mounted in read only mode. |
| 22 | type Capabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capability# uint64 |
| 23 | |
| 24 | const ( |
| 25 | // WriteCapability means that the fs is writable. |
| 26 | WriteCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/WriteCapability. Capabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capability# = 1 << iota |
| 27 | // ReadCapability means that the fs is readable. |
| 28 | ReadCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ReadCapability. |
| 29 | // ReadAndWriteCapability is the ability to open a file in read and write mode. |
| 30 | ReadAndWriteCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ReadAndWriteCapability. |
| 31 | // SeekCapability means it is able to move position inside the file. |
| 32 | SeekCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/SeekCapability. |
| 33 | // TruncateCapability means that a file can be truncated. |
| 34 | TruncateCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/TruncateCapability. |
| 35 | // LockCapability is the ability to lock a file. |
| 36 | LockCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/LockCapability. |
| 37 | // SyncCapability is the ability to synchronize file contents to stable storage. |
| 38 | SyncCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/SyncCapability. |
| 39 | |
| 40 | // DefaultCapabilities lists all capable features supported by filesystems |
| 41 | // without Capability interface. This list should not be changed until a |
| 42 | // major version is released. |
| 43 | DefaultCapabilitiesscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/DefaultCapabilities. Capabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capability# = WriteCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/WriteCapability. | ReadCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ReadCapability. | |
| 44 | ReadAndWriteCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ReadAndWriteCapability. | SeekCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/SeekCapability. | TruncateCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/TruncateCapability. | |
| 45 | LockCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/LockCapability. |
| 46 | |
| 47 | // AllCapabilities lists all capable features. |
| 48 | AllCapabilitiesscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/AllCapabilities. Capabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capability# = WriteCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/WriteCapability. | ReadCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ReadCapability. | |
| 49 | ReadAndWriteCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/ReadAndWriteCapability. | SeekCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/SeekCapability. | TruncateCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/TruncateCapability. | |
| 50 | LockCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/LockCapability. | SyncCapabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/SyncCapability. |
| 51 | ) |
| 52 | |
| 53 | // Filesystem abstract the operations in a storage-agnostic interface. |
| 54 | // Each method implementation mimics the behavior of the equivalent functions |
| 55 | // at the os package from the standard library. |
| 56 | type Filesystemscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Filesystem# interface { |
| 57 | Basicscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic# |
| 58 | TempFilescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/TempFile# |
| 59 | Dirscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Dir# |
| 60 | Symlinkscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Symlink# |
| 61 | Chrootscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Chroot# |
| 62 | } |
| 63 | |
| 64 | // Basic abstract the basic operations in a storage-agnostic interface as |
| 65 | // an extension to the Basic interface. |
| 66 | type Basicscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic# interface { |
| 67 | // Create creates the named file with mode 0666 (before umask), truncating |
| 68 | // it if it already exists. If successful, methods on the returned File can |
| 69 | // be used for I/O; the associated file descriptor has mode O_RDWR. |
| 70 | Createscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#Create.(filename string) (Filescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/File#, error) |
| 71 | // Open opens the named file for reading. If successful, methods on the |
| 72 | // returned file can be used for reading; the associated file descriptor has |
| 73 | // mode O_RDONLY. |
| 74 | Openscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#Open.(filename string) (Filescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/File#, error) |
| 75 | // OpenFile is the generalized open call; most users will use Open or Create |
| 76 | // instead. It opens the named file with specified flag (O_RDONLY etc.) and |
| 77 | // perm, (0666 etc.) if applicable. If successful, methods on the returned |
| 78 | // File can be used for I/O. |
| 79 | OpenFilescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#OpenFile.(filename string, flag int, perm fsscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/.FileModescip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/FileMode#) (Filescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/File#, error) |
| 80 | // Stat returns a FileInfo describing the named file. |
| 81 | Statscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#Stat.(filename string) (fsscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/.FileInfoscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/FileInfo#, error) |
| 82 | // Rename renames (moves) oldpath to newpath. If newpath already exists and |
| 83 | // is not a directory, Rename replaces it. OS-specific restrictions may |
| 84 | // apply when oldpath and newpath are in different directories. |
| 85 | Renamescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#Rename.(oldpath, newpath string) error |
| 86 | // Remove removes the named file or directory. |
| 87 | Removescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#Remove.(filename string) error |
| 88 | // Join joins any number of path elements into a single path, adding a |
| 89 | // Separator if necessary. Join calls filepath.Clean on the result; in |
| 90 | // particular, all empty strings are ignored. On Windows, the result is a |
| 91 | // UNC path if and only if the first path element is a UNC path. |
| 92 | Joinscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#Join.(elem ...string) string |
| 93 | } |
| 94 | |
| 95 | type TempFilescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/TempFile# interface { |
| 96 | // TempFile creates a new temporary file in the directory dir with a name |
| 97 | // beginning with prefix, opens the file for reading and writing, and |
| 98 | // returns the resulting *os.File. If dir is the empty string, TempFile |
| 99 | // uses the default directory for temporary files (see os.TempDir). |
| 100 | // Multiple programs calling TempFile simultaneously will not choose the |
| 101 | // same file. The caller can use f.Name() to find the pathname of the file. |
| 102 | // It is the caller's responsibility to remove the file when no longer |
| 103 | // needed. |
| 104 | TempFilescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/TempFile#TempFile.(dir, prefix string) (Filescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/File#, error) |
| 105 | } |
| 106 | |
| 107 | // Dir abstract the dir related operations in a storage-agnostic interface as |
| 108 | // an extension to the Basic interface. |
| 109 | type Dirscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Dir# interface { |
| 110 | // ReadDir reads the directory named by dirname and returns a list of |
| 111 | // directory entries sorted by filename. |
| 112 | ReadDirscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Dir#ReadDir.(path string) ([]fsscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/.DirEntryscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/DirEntry#, error) |
| 113 | // MkdirAll creates a directory named path, along with any necessary |
| 114 | // parents, and returns nil, or else returns an error. The permission bits |
| 115 | // perm are used for all directories that MkdirAll creates. If path is/ |
| 116 | // already a directory, MkdirAll does nothing and returns nil. |
| 117 | MkdirAllscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Dir#MkdirAll.(filename string, perm fsscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/.FileModescip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/FileMode#) error |
| 118 | } |
| 119 | |
| 120 | // Symlink abstract the symlink related operations in a storage-agnostic |
| 121 | // interface as an extension to the Basic interface. |
| 122 | type Symlinkscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Symlink# interface { |
| 123 | // Lstat returns a FileInfo describing the named file. If the file is a |
| 124 | // symbolic link, the returned FileInfo describes the symbolic link. Lstat |
| 125 | // makes no attempt to follow the link. |
| 126 | Lstatscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Symlink#Lstat.(filename string) (fsscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/.FileInfoscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/FileInfo#, error) |
| 127 | // Symlink creates a symbolic-link from link to target. target may be an |
| 128 | // absolute or relative path, and need not refer to an existing node. |
| 129 | // Parent directories of link are created as necessary. |
| 130 | Symlinkscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Symlink#Symlink.(target, link string) error |
| 131 | // Readlink returns the target path of link. |
| 132 | Readlinkscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Symlink#Readlink.(link string) (string, error) |
| 133 | } |
| 134 | |
| 135 | // Chmod abstracts the logic around changing file modes. |
| 136 | type Chmodscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Chmod# interface { |
| 137 | // Chmod changes the mode of the named file to mode. If the file is a |
| 138 | // symbolic link, it changes the mode of the link's target. |
| 139 | Chmodscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Chmod#Chmod.(name string, mode fsscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/.FileModescip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/FileMode#) error |
| 140 | } |
| 141 | |
| 142 | // Change abstract the FileInfo change related operations in a storage-agnostic |
| 143 | // interface as an extension to the Basic interface |
| 144 | type Changescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Change# interface { |
| 145 | Chmodscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Chmod# |
| 146 | |
| 147 | // Lchown changes the numeric uid and gid of the named file. If the file is |
| 148 | // a symbolic link, it changes the uid and gid of the link itself. |
| 149 | Lchownscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Change#Lchown.(name string, uid, gid int) error |
| 150 | // Chown changes the numeric uid and gid of the named file. If the file is a |
| 151 | // symbolic link, it changes the uid and gid of the link's target. |
| 152 | Chownscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Change#Chown.(name string, uid, gid int) error |
| 153 | // Chtimes changes the access and modification times of the named file, |
| 154 | // similar to the Unix utime() or utimes() functions. |
| 155 | // |
| 156 | // The underlying filesystem may truncate or round the values to a less |
| 157 | // precise time unit. |
| 158 | Chtimesscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Change#Chtimes.(name string, atime timescip-go gomod github.com/golang/go/src go1.25.0 time/.Timescip-go gomod github.com/golang/go/src go1.25.0 time/Time#, mtime timescip-go gomod github.com/golang/go/src go1.25.0 time/.Timescip-go gomod github.com/golang/go/src go1.25.0 time/Time#) error |
| 159 | } |
| 160 | |
| 161 | // Chroot abstract the chroot related operations in a storage-agnostic interface |
| 162 | // as an extension to the Basic interface. |
| 163 | type Chrootscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Chroot# interface { |
| 164 | // Chroot returns a new filesystem from the same type where the new root is |
| 165 | // the given path. Files outside of the designated directory tree cannot be |
| 166 | // accessed. |
| 167 | Chrootscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Chroot#Chroot.(path string) (Filesystemscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Filesystem#, error) |
| 168 | // Root returns the root path of the filesystem. |
| 169 | Rootscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Chroot#Root.() string |
| 170 | } |
| 171 | |
| 172 | // File represent a file, being a subset of the os.File |
| 173 | type Filescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/File# interface { |
| 174 | fsscip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/.Filescip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/File# |
| 175 | |
| 176 | // Name returns the name of the file as presented to Open. |
| 177 | Namescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/File#Name.() string |
| 178 | ioscip-go gomod github.com/golang/go/src go1.25.0 io/.Writerscip-go gomod github.com/golang/go/src go1.25.0 io/Writer# |
| 179 | ioscip-go gomod github.com/golang/go/src go1.25.0 io/.WriterAtscip-go gomod github.com/golang/go/src go1.25.0 io/WriterAt# |
| 180 | // ReadAt must be safe for concurrent calls from multiple |
| 181 | // goroutines on the same handle, matching the [io.ReaderAt] |
| 182 | // contract documented in package io. Callers performing |
| 183 | // concurrent random-access reads on a shared File rely on |
| 184 | // this; backings that cannot honour it must not satisfy |
| 185 | // [billy.File]. |
| 186 | ioscip-go gomod github.com/golang/go/src go1.25.0 io/.ReaderAtscip-go gomod github.com/golang/go/src go1.25.0 io/ReaderAt# |
| 187 | ioscip-go gomod github.com/golang/go/src go1.25.0 io/.Seekerscip-go gomod github.com/golang/go/src go1.25.0 io/Seeker# |
| 188 | // Truncate the file. |
| 189 | Truncatescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/File#Truncate.(size int64) error |
| 190 | } |
| 191 | |
| 192 | // Locker abstracts the lock and unlock of a File within the filesystem. Not |
| 193 | // all filesystem implementations support it. |
| 194 | type Lockerscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Locker# interface { |
| 195 | // Lock locks the file like e.g. flock. It protects against access from |
| 196 | // other processes. |
| 197 | Lockscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Locker#Lock.() error |
| 198 | // Unlock unlocks the file. |
| 199 | Unlockscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Locker#Unlock.() error |
| 200 | } |
| 201 | |
| 202 | // Syncer interface can be implemented by filesystems that support syncing. |
| 203 | type Syncerscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Syncer# interface { |
| 204 | // Sync commits the current contents of the file to stable storage. |
| 205 | Syncscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Syncer#Sync.() error |
| 206 | } |
| 207 | |
| 208 | // Capable interface can return the available features of a filesystem. |
| 209 | type Capablescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capable# interface { |
| 210 | // Capabilities returns the capabilities of a filesystem in bit flags. |
| 211 | Capabilitiesscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capable#Capabilities.() Capabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capability# |
| 212 | } |
| 213 | |
| 214 | // Capabilities returns the features supported by a filesystem. If the FS |
| 215 | // does not implement Capable interface it returns all features. |
| 216 | func Capabilitiesscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capabilities().(fs Basicscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#) Capabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capability# { |
| 217 | capable, ok := fs.(Capablescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capable#) |
| 218 | if !ok { |
| 219 | return DefaultCapabilitiesscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/DefaultCapabilities. |
| 220 | } |
| 221 | |
| 222 | return capable.Capabilitiesscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capable#Capabilities.() |
| 223 | } |
| 224 | |
| 225 | // CapabilityCheck tests the filesystem for the provided capabilities and |
| 226 | // returns true in case it supports all of them. |
| 227 | func CapabilityCheckscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/CapabilityCheck().(fs Basicscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#, capabilities Capabilityscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capability#) bool { |
| 228 | fsCaps := Capabilitiesscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Capabilities().(fs) |
| 229 | return fsCaps&capabilities == capabilities |
| 230 | } |