MCPcopy Create free account

hub / github.com/spf13/afero / functions

Functions803 in github.com/spf13/afero

↓ 158 callersMethodClose
()
gcsfs/internal/stiface/interfaces.go:28
↓ 136 callersMethodName
The name of this FileSystem
afero.go:92
↓ 75 callersMethodOpen
Open opens a file, returning it or an error, if any happens.
afero.go:71
↓ 57 callersMethodStat
Stat returns a FileInfo describing the named file, or an error, if any happens.
afero.go:89
↓ 47 callersMethodMode
()
mem/file.go:339
↓ 42 callersMethodWriteString
(s string)
afero.go:51
↓ 41 callersMethodRun
(context.Context)
gcsfs/internal/stiface/interfaces.go:122
↓ 39 callersMethodIsDir
(path string)
util.go:265
↓ 36 callersMethodCreate
Create creates a file in the filesystem, returning the file and an error, if any happens.
afero.go:60
↓ 34 callersFunctionNewMemMapFs
()
memmap.go:38
↓ 33 callersMethodMkdirAll
MkdirAll creates a directory path and all parents that does not exist yet.
afero.go:68
↓ 28 callersMethodOpenFile
OpenFile opens a file using the given flags and the given mode.
afero.go:74
↓ 27 callersMethodReaddir
(count int)
afero.go:46
↓ 27 callersMethodgetData
()
memmap.go:42
↓ 25 callersMethodMkdirAll
(path string, perm os.FileMode)
memmap.go:179
↓ 25 callersMethodStat
(name string)
memmap.go:384
↓ 24 callersMethodReaddirnames
(n int)
afero.go:47
↓ 24 callersMethodSize
()
gcsfs/internal/stiface/interfaces.go:96
↓ 22 callersMethodWrite
(b []byte)
mem/file.go:279
↓ 21 callersMethodRemove
Remove removes a file identified by name, returning an error, if any happens.
afero.go:78
↓ 20 callersMethodModTime
()
mem/file.go:345
↓ 20 callersMethodRealPath
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 callersMethodString
()
afero_test.go:635
↓ 18 callersFunctionremoveAllTestFiles
(t *testing.T)
afero_test.go:730
↓ 17 callersMethodCreate
(name string)
memmap.go:56
↓ 17 callersFunctionNewBasePathFs
(source Fs, path string)
basepath.go:47
↓ 17 callersMethodSeek
(offset int64, whence int)
mem/file.go:264
↓ 17 callersFunctionnotImplemented
(op, path string)
iofs.go:300
↓ 16 callersMethodMkdir
Mkdir creates a directory in the filesystem, return an error if any happens.
afero.go:64
↓ 15 callersMethodDir
(s string)
httpFs.go:56
↓ 14 callersMethodIsDir
()
gcsfs/file_info.go:126
↓ 14 callersMethodRemoveAll
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 callersFunctionassertPermissionError
(t *testing.T, err error)
iofs_test.go:524
↓ 13 callersMethodChmod
Chmod changes the mode of the named file to mode.
afero.go:95
↓ 13 callersFunctionIsDir
IsDir checks if a given path is a directory.
util.go:270
↓ 13 callersMethodMkdir
(name string, perm os.FileMode)
memmap.go:153
↓ 13 callersFunctionTempDir
(fs Fs, dir, prefix string)
ioutil.go:220
↓ 13 callersFunctionWriteFile
(fs Fs, filename string, data []byte, perm os.FileMode)
ioutil.go:125
↓ 13 callersFunctionnormalizePath
Handle some relative paths
memmap.go:191
↓ 12 callersMethodMode
()
gcsfs/file_info.go:115
↓ 12 callersMethodNewReader
(context.Context)
gcsfs/internal/stiface/interfaces.go:41
↓ 12 callersMethodRename
Rename renames a file.
afero.go:85
↓ 11 callersMethodChtimes
Chtimes changes the access and modification times of the named file
afero.go:101
↓ 11 callersMethodTempDir
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 callersMethodTruncate
(size int64)
afero.go:50
↓ 11 callersFunctioncreateFiles
(t *testing.T)
gcsfs/gcs_test.go:133
↓ 11 callersFunctionremoveFiles
(t *testing.T)
gcsfs/gcs_test.go:173
↓ 10 callersMethodChown
Chown changes the uid and gid of the named file.
afero.go:98
↓ 10 callersFunctionNewOsFs
()
os.go:30
↓ 10 callersFunctioncheckPathError
(t *testing.T, err error, op string)
memmap_test.go:103
↓ 10 callersMethodnormSeparators
normSeparators will normalize all "\\" and "/" to the provided separator
gcsfs/fs.go:64
↓ 10 callersFunctiontestDir
(fs Fs)
afero_test.go:37
↓ 9 callersMethodLstatIfPossible
(name string)
lstater.go:26
↓ 9 callersMethodWriteAt
(b []byte, off int64)
mem/file.go:314
↓ 9 callersMethodcacheStatus
(name string)
cacheOnReadFs.go:48
↓ 9 callersFunctiondeleteTempDir
This function is very dangerous. Don't use it.
util_test.go:435
↓ 9 callersMethodensureNoLeadingSeparator
(s string)
gcsfs/fs.go:75
↓ 9 callersFunctionensureNoPrefix
(s string)
gcsfs/fs.go:83
↓ 9 callersFunctionvalidateName
(s string)
gcsfs/fs.go:90
↓ 9 callersMethodwrapError
(op, path string, err error)
iofs.go:120
↓ 8 callersFunctionGlob
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 callersMethodOpen
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 callersFunctionReadFile
(fs Fs, filename string)
ioutil.go:65
↓ 8 callersFunctionTempFile
(fs Fs, dir, pattern string)
ioutil.go:180
↓ 8 callersFunctiondeleteFileInTempDir
(f File)
util_test.go:214
↓ 8 callersMethodgetObj
(name string)
gcsfs/fs.go:116
↓ 7 callersMethodAdd
(*FileData)
mem/dir.go:20
↓ 7 callersMethodName
()
mem/file.go:68
↓ 7 callersMethodOpen
(name string)
iofs.go:175
↓ 7 callersMethodOpenFile
(name string, flag int, perm os.FileMode)
memmap.go:242
↓ 7 callersMethodRead
(b []byte)
mem/file.go:208
↓ 7 callersFunctionReadDir
(fs Fs, dirname string)
ioutil.go:43
↓ 7 callersMethodRemoveAll
(path string)
os.go:78
↓ 7 callersFunctiontmpFile
(fs Fs)
afero_test.go:47
↓ 6 callersMethodBucket
(name string)
gcsfs/internal/stiface/interfaces.go:26
↓ 6 callersFunctionExists
Check if a file or directory exists.
util.go:311
↓ 6 callersMethodName
()
memmap.go:54
↓ 6 callersMethodNewWriter
(context.Context)
gcsfs/internal/stiface/interfaces.go:43
↓ 6 callersMethodOpen
(name string)
memmap.go:204
↓ 6 callersMethodReadDir
(name string)
iofs.go:72
↓ 6 callersFunctionSetMode
(f *FileData, mode os.FileMode)
mem/file.go:88
↓ 6 callersMethodSize
()
mem/file.go:357
↓ 6 callersFunctioncheckSize
(t *testing.T, f File, size int64)
afero_test.go:751
↓ 6 callersMethodcopyToLayer
(name string)
cacheOnReadFs.go:74
↓ 6 callersFunctioncreateEmptyTempDir
()
util_test.go:221
↓ 6 callersMethoddirOrMatches
(name string)
regexpfs.go:37
↓ 6 callersMethodensureTrailingSeparator
(s string)
gcsfs/fs.go:68
↓ 6 callersMethodisBaseFile
Returns true if the file is not in the overlay
copyOnWriteFs.go:30
↓ 6 callersMethodmatchesName
(name string)
regexpfs.go:27
↓ 5 callersMethodAttrs
()
gcsfs/internal/stiface/interfaces.go:112
↓ 5 callersMethodCreate
(name string)
basepath.go:175
↓ 5 callersMethodCreate
(name string)
copyOnWriteFs.go:330
↓ 5 callersMethodDelete
(context.Context, storage.ACLEntity)
gcsfs/internal/stiface/interfaces.go:87
↓ 5 callersMethodIsDir
()
mem/file.go:351
↓ 5 callersFunctionNewFileHandle
(data *FileData)
mem/file.go:44
↓ 5 callersMethodReadlinkIfPossible
(name string)
symlink.go:49
↓ 5 callersFunctioncreateZeroSizedFileInTempDir
()
util_test.go:188
↓ 5 callersMethodmaybeCloseIo
()
gcsfs/file_resource.go:63
↓ 5 callersFunctionreaderContainsAny
readerContains reports whether any of the subslices is within r.
util.go:199
↓ 5 callersMethodregisterWithParent
(f *mem.FileData, perm os.FileMode)
memmap.go:110
next →1–100 of 803, ranked by callers