Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
shenyizhong
/
minsync
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0cf8979f
authored
Jan 10, 2022
by
shenyizhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* code review
1 parent
d5df2bdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/main.go
src/main.go
View file @
0cf8979
...
@@ -59,19 +59,19 @@ func main() {
...
@@ -59,19 +59,19 @@ func main() {
}
}
if
nodetree
.
StrOp
==
"upload"
{
if
nodetree
.
StrOp
==
"upload"
{
nodetree
.
StrSrc
,
err
=
filepath
.
Abs
(
nodetree
.
StrSrc
)
tmp
,
err
:
=
filepath
.
Abs
(
nodetree
.
StrSrc
)
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Println
(
err
)
fmt
.
Println
(
err
)
return
return
}
}
nodetree
.
StrSrc
+=
"/"
nodetree
.
StrSrc
=
tmp
+
"/"
}
else
if
nodetree
.
StrOp
==
"download"
{
}
else
if
nodetree
.
StrOp
==
"download"
{
nodetree
.
StrDst
,
err
=
filepath
.
Abs
(
nodetree
.
StrDst
)
tmp
,
err
:
=
filepath
.
Abs
(
nodetree
.
StrDst
)
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Println
(
err
)
fmt
.
Println
(
err
)
return
return
}
}
nodetree
.
StrDst
+=
"/"
nodetree
.
StrDst
=
tmp
+
"/"
}
}
if
nodetree
.
StrHost
==
""
{
if
nodetree
.
StrHost
==
""
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment