Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10433562
directories.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
395 B
Subscribers
None
directories.go
View Options
package
config
import
(
"os"
"path/filepath"
"github.com/writeas/writeas-cli/fileutils"
)
func
UserDataDir
(
dataDirName
string
)
string
{
return
filepath
.
Join
(
parentDataDir
(),
dataDirName
)
}
func
DataDirExists
(
dataDirName
string
)
bool
{
return
fileutils
.
Exists
(
UserDataDir
(
dataDirName
))
}
func
CreateDataDir
(
dataDirName
string
)
error
{
return
os
.
Mkdir
(
UserDataDir
(
dataDirName
),
0700
)
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 4:57 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3137351
Attached To
rWCLI writeas-cli
Event Timeline
Log In to Comment