crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
1c3fcbe5
ROOT
/
go
/
libraries
/
utils
/
filesys
/
inmemfs.go
Search
History
625 lines
|
ISO-8859-1
|
14 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
InMemNowFunc
memObj
isDir
()
:
bool
parent
()
:
*memDir
modTime
()
:
time.Time
memFile
absPath
:
string
data
:
[]byte
parentDir
:
*memDir
time
:
time.Time
memDir
absPath
:
string
objs
:
map[string]memObj
parentDir
:
*memDir
time
:
time.Time
newEmptyDir
(path string, parent *memDir)
:
*memDir
InMemFS
rwLock
:
*sync.RWMutex
cwd
:
string
objs
:
map[string]memObj
WithWorkingDir
(path string)
:
(Filesys, error)
_
:
Filesys
EmptyInMemFS
(workingDir string)
:
*InMemFS
NewInMemFS
(dirs []string, files map[string][]byte, cwd string)
:
*InMemFS
iterEntry
path
:
string
size
:
int64
isDir
:
bool
inMemFSWriteCloser
path
:
string
parentDir
:
*memDir
fs
:
*InMemFS
buf
:
*bytes.Buffer
rwLock
:
*sync.RWMutex
*memFile
isDir
()
:
bool
parent
()
:
*memDir
modTime
()
:
time.Time
*memDir
isDir
()
:
bool
parent
()
:
*memDir
modTime
()
:
time.Time
*InMemFS
getAbsPath
(path string)
:
string
Exists
(path string)
:
(exists bool, isDir bool)
exists
(path string)
:
(exists bool, isDir bool)
getIterEntries
(path string, recursive bool)
:
([]iterEntry, error)
Iter
(path string, recursive bool, cb FSIterCB)
:
error
iter
(path string, recursive bool, cb FSIterCB)
:
(bool, error)
OpenForRead
(fp string)
:
(io.ReadCloser, error)
ReadFile
(fp string)
:
([]byte, error)
OpenForWrite
(fp string, perm os.FileMode)
:
(io.WriteCloser, error)
OpenForWriteAppend
(fp string, perm os.FileMode)
:
(io.WriteCloser, error)
WriteFile
(fp string, data []byte)
:
error
MkDirs
(path string)
:
error
mkDirs
(path string)
:
(*memDir, error)
DeleteFile
(path string)
:
error
deleteFile
(path string)
:
error
Delete
(path string, force bool)
:
error
MoveFile
(srcPath, destPath string)
:
error
CopyFile
(srcPath, destPath string)
:
error
Abs
(path string)
:
(string, error)
LastModified
(path string)
:
(t time.Time, exists bool)
TempDir
()
:
string
pathToNative
(path string)
:
string
*inMemFSWriteCloser
Write
(p []byte)
:
(int, error)
Close
()
:
error
All occurrences
Please wait...
Page is in error, reload to recover