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-dms3-cmds
Commits
6a504122
Commit
6a504122
authored
Aug 31, 2016
by
Jeromy Johnson
Committed by
GitHub
Aug 31, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3135 from ipfs/kevina/2839directfix
Directly Fix #2839
parents
121e486d
1888eb5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
cli/parse.go
cli/parse.go
+5
-7
No files found.
cli/parse.go
View file @
6a504122
...
...
@@ -401,16 +401,14 @@ func appendFile(fpath string, argDef *cmds.Argument, recursive, hidden bool) (fi
if
err
!=
nil
{
return
nil
,
err
}
cwd
,
err
=
filepath
.
EvalSymlinks
(
cwd
)
if
err
!=
nil
{
return
nil
,
err
}
fpath
=
cwd
}
fpath
=
filepath
.
Clean
(
fpath
)
fpath
,
err
:=
filepath
.
EvalSymlinks
(
fpath
)
if
err
!=
nil
{
return
nil
,
err
}
// Repeat ToSlash after EvalSymlinks as it turns path to platform specific
fpath
=
filepath
.
ToSlash
(
fpath
)
fpath
=
filepath
.
ToSlash
(
filepath
.
Clean
(
fpath
))
stat
,
err
:=
os
.
Lstat
(
fpath
)
if
err
!=
nil
{
...
...
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