Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/spf13/afero
/ functions
Functions
803 in github.com/spf13/afero
⨍
Functions
803
◇
Types & classes
89
↓ 158 callers
Method
Close
()
gcsfs/internal/stiface/interfaces.go:28
↓ 136 callers
Method
Name
The name of this FileSystem
afero.go:92
↓ 75 callers
Method
Open
Open opens a file, returning it or an error, if any happens.
afero.go:71
↓ 57 callers
Method
Stat
Stat returns a FileInfo describing the named file, or an error, if any happens.
afero.go:89
↓ 47 callers
Method
Mode
()
mem/file.go:339
↓ 42 callers
Method
WriteString
(s string)
afero.go:51
↓ 41 callers
Method
Run
(context.Context)
gcsfs/internal/stiface/interfaces.go:122
↓ 39 callers
Method
IsDir
(path string)
util.go:265
↓ 36 callers
Method
Create
Create creates a file in the filesystem, returning the file and an error, if any happens.
afero.go:60
↓ 34 callers
Function
NewMemMapFs
()
memmap.go:38
↓ 33 callers
Method
MkdirAll
MkdirAll creates a directory path and all parents that does not exist yet.
afero.go:68
↓ 28 callers
Method
OpenFile
OpenFile opens a file using the given flags and the given mode.
afero.go:74
↓ 27 callers
Method
Readdir
(count int)
afero.go:46
↓ 27 callers
Method
getData
()
memmap.go:42
↓ 25 callers
Method
MkdirAll
(path string, perm os.FileMode)
memmap.go:179
↓ 25 callers
Method
Stat
(name string)
memmap.go:384
↓ 24 callers
Method
Readdirnames
(n int)
afero.go:47
↓ 24 callers
Method
Size
()
gcsfs/internal/stiface/interfaces.go:96
↓ 22 callers
Method
Write
(b []byte)
mem/file.go:279
↓ 21 callers
Method
Remove
Remove removes a file identified by name, returning an error, if any happens.
afero.go:78
↓ 20 callers
Method
ModTime
()
mem/file.go:345
↓ 20 callers
Method
RealPath
on a file outside the base path it returns the given file name and an error, else the given file with the base path prepended
basepath.go:53
↓ 18 callers
Method
String
()
afero_test.go:635
↓ 18 callers
Function
removeAllTestFiles
(t *testing.T)
afero_test.go:730
↓ 17 callers
Method
Create
(name string)
memmap.go:56
↓ 17 callers
Function
NewBasePathFs
(source Fs, path string)
basepath.go:47
↓ 17 callers
Method
Seek
(offset int64, whence int)
mem/file.go:264
↓ 17 callers
Function
notImplemented
(op, path string)
iofs.go:300
↓ 16 callers
Method
Mkdir
Mkdir creates a directory in the filesystem, return an error if any happens.
afero.go:64
↓ 15 callers
Method
Dir
(s string)
httpFs.go:56
↓ 14 callers
Method
IsDir
()
gcsfs/file_info.go:126
↓ 14 callers
Method
RemoveAll
RemoveAll removes a directory path and any children it contains. It does not fail if the path does not exist (return nil).
afero.go:82
↓ 14 callers
Function
assertPermissionError
(t *testing.T, err error)
iofs_test.go:524
↓ 13 callers
Method
Chmod
Chmod changes the mode of the named file to mode.
afero.go:95
↓ 13 callers
Function
IsDir
IsDir checks if a given path is a directory.
util.go:270
↓ 13 callers
Method
Mkdir
(name string, perm os.FileMode)
memmap.go:153
↓ 13 callers
Function
TempDir
(fs Fs, dir, prefix string)
ioutil.go:220
↓ 13 callers
Function
WriteFile
(fs Fs, filename string, data []byte, perm os.FileMode)
ioutil.go:125
↓ 13 callers
Function
normalizePath
Handle some relative paths
memmap.go:191
↓ 12 callers
Method
Mode
()
gcsfs/file_info.go:115
↓ 12 callers
Method
NewReader
(context.Context)
gcsfs/internal/stiface/interfaces.go:41
↓ 12 callers
Method
Rename
Rename renames a file.
afero.go:85
↓ 11 callers
Method
Chtimes
Chtimes changes the access and modification times of the named file
afero.go:101
↓ 11 callers
Method
TempDir
TempDir creates a new temporary directory in the directory dir with a name beginning with prefix and returns the path of the new directory. If dir is
ioutil.go:216
↓ 11 callers
Method
Truncate
(size int64)
afero.go:50
↓ 11 callers
Function
createFiles
(t *testing.T)
gcsfs/gcs_test.go:133
↓ 11 callers
Function
removeFiles
(t *testing.T)
gcsfs/gcs_test.go:173
↓ 10 callers
Method
Chown
Chown changes the uid and gid of the named file.
afero.go:98
↓ 10 callers
Function
NewOsFs
()
os.go:30
↓ 10 callers
Function
checkPathError
(t *testing.T, err error, op string)
memmap_test.go:103
↓ 10 callers
Method
normSeparators
normSeparators will normalize all "\\" and "/" to the provided separator
gcsfs/fs.go:64
↓ 10 callers
Function
testDir
(fs Fs)
afero_test.go:37
↓ 9 callers
Method
LstatIfPossible
(name string)
lstater.go:26
↓ 9 callers
Method
WriteAt
(b []byte, off int64)
mem/file.go:314
↓ 9 callers
Method
cacheStatus
(name string)
cacheOnReadFs.go:48
↓ 9 callers
Function
deleteTempDir
This function is very dangerous. Don't use it.
util_test.go:435
↓ 9 callers
Method
ensureNoLeadingSeparator
(s string)
gcsfs/fs.go:75
↓ 9 callers
Function
ensureNoPrefix
(s string)
gcsfs/fs.go:83
↓ 9 callers
Function
validateName
(s string)
gcsfs/fs.go:90
↓ 9 callers
Method
wrapError
(op, path string, err error)
iofs.go:120
↓ 8 callers
Function
Glob
Glob returns the names of all files matching pattern or nil if there is no matching file. The syntax of patterns is the same as in Match. The pattern
match.go:34
↓ 8 callers
Method
Open
This function handles the 9 different possibilities caused by the union which are the intersection of the following... layer: doesn't exist, exists
copyOnWriteFs.go:258
↓ 8 callers
Function
ReadFile
(fs Fs, filename string)
ioutil.go:65
↓ 8 callers
Function
TempFile
(fs Fs, dir, pattern string)
ioutil.go:180
↓ 8 callers
Function
deleteFileInTempDir
(f File)
util_test.go:214
↓ 8 callers
Method
getObj
(name string)
gcsfs/fs.go:116
↓ 7 callers
Method
Add
(*FileData)
mem/dir.go:20
↓ 7 callers
Method
Name
()
mem/file.go:68
↓ 7 callers
Method
Open
(name string)
iofs.go:175
↓ 7 callers
Method
OpenFile
(name string, flag int, perm os.FileMode)
memmap.go:242
↓ 7 callers
Method
Read
(b []byte)
mem/file.go:208
↓ 7 callers
Function
ReadDir
(fs Fs, dirname string)
ioutil.go:43
↓ 7 callers
Method
RemoveAll
(path string)
os.go:78
↓ 7 callers
Function
tmpFile
(fs Fs)
afero_test.go:47
↓ 6 callers
Method
Bucket
(name string)
gcsfs/internal/stiface/interfaces.go:26
↓ 6 callers
Function
Exists
Check if a file or directory exists.
util.go:311
↓ 6 callers
Method
Name
()
memmap.go:54
↓ 6 callers
Method
NewWriter
(context.Context)
gcsfs/internal/stiface/interfaces.go:43
↓ 6 callers
Method
Open
(name string)
memmap.go:204
↓ 6 callers
Method
ReadDir
(name string)
iofs.go:72
↓ 6 callers
Function
SetMode
(f *FileData, mode os.FileMode)
mem/file.go:88
↓ 6 callers
Method
Size
()
mem/file.go:357
↓ 6 callers
Function
checkSize
(t *testing.T, f File, size int64)
afero_test.go:751
↓ 6 callers
Method
copyToLayer
(name string)
cacheOnReadFs.go:74
↓ 6 callers
Function
createEmptyTempDir
()
util_test.go:221
↓ 6 callers
Method
dirOrMatches
(name string)
regexpfs.go:37
↓ 6 callers
Method
ensureTrailingSeparator
(s string)
gcsfs/fs.go:68
↓ 6 callers
Method
isBaseFile
Returns true if the file is not in the overlay
copyOnWriteFs.go:30
↓ 6 callers
Method
matchesName
(name string)
regexpfs.go:27
↓ 5 callers
Method
Attrs
()
gcsfs/internal/stiface/interfaces.go:112
↓ 5 callers
Method
Create
(name string)
basepath.go:175
↓ 5 callers
Method
Create
(name string)
copyOnWriteFs.go:330
↓ 5 callers
Method
Delete
(context.Context, storage.ACLEntity)
gcsfs/internal/stiface/interfaces.go:87
↓ 5 callers
Method
IsDir
()
mem/file.go:351
↓ 5 callers
Function
NewFileHandle
(data *FileData)
mem/file.go:44
↓ 5 callers
Method
ReadlinkIfPossible
(name string)
symlink.go:49
↓ 5 callers
Function
createZeroSizedFileInTempDir
()
util_test.go:188
↓ 5 callers
Method
maybeCloseIo
()
gcsfs/file_resource.go:63
↓ 5 callers
Function
readerContainsAny
readerContains reports whether any of the subslices is within r.
util.go:199
↓ 5 callers
Method
registerWithParent
(f *mem.FileData, perm os.FileMode)
memmap.go:110
next →
1–100 of 803, ranked by callers