- Add WriteFile method to mock filesystem (non-atomic path, creates files) - Implement WriteFileAtomic in mock with temp file + rename pattern using .tmp/ directory, matching real filesystem semantics - Update WriteFileTask.Execute() to use WriteFileAtomic - Update FlushAll() to use WriteFileAtomic - Fix mock to create files on write (matching os.WriteFile behavior) - Update tests to match new semantics (create-if-not-exists)
12 lines
143 B
Go
12 lines
143 B
Go
//+build !darwin !linux
|
|
|
|
package main
|
|
|
|
import (
|
|
_ "gioui.org/app/permission/storage"
|
|
)
|
|
|
|
var (
|
|
startpath="/storage/emulated/0/Notes"
|
|
)
|