Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-ds-flatfs
Commits
48eaf0a7
Commit
48eaf0a7
authored
Feb 12, 2017
by
Jeromy Johnson
Committed by
GitHub
Feb 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17 from kpcyrd/patch-1
Fix permissions
parents
5274262c
cd1afadc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
flatfs.go
flatfs.go
+2
-2
No files found.
flatfs.go
View file @
48eaf0a7
...
...
@@ -47,7 +47,7 @@ var (
func
Create
(
path
string
,
fun
*
ShardIdV1
)
error
{
err
:=
os
.
Mkdir
(
path
,
07
77
)
err
:=
os
.
Mkdir
(
path
,
07
55
)
if
err
!=
nil
&&
!
os
.
IsExist
(
err
)
{
return
err
}
...
...
@@ -148,7 +148,7 @@ func (fs *Datastore) makeDir(dir string) error {
}
func
(
fs
*
Datastore
)
makeDirNoSync
(
dir
string
)
error
{
if
err
:=
os
.
Mkdir
(
dir
,
07
77
);
err
!=
nil
{
if
err
:=
os
.
Mkdir
(
dir
,
07
55
);
err
!=
nil
{
// EEXIST is safe to ignore here, that just means the prefix
// directory already existed.
if
!
os
.
IsExist
(
err
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment