Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mycard Mobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GaiaXalter
Mycard Mobile
Commits
87bb7520
Commit
87bb7520
authored
Aug 12, 2019
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
8d4d377e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
package.json
package.json
+1
-1
src/app/storage.service.ts
src/app/storage.service.ts
+2
-2
No files found.
package.json
View file @
87bb7520
{
{
"name"
:
"mycard-mobile"
,
"name"
:
"mycard-mobile"
,
"version"
:
"1.0.3
8
"
,
"version"
:
"1.0.3
9
"
,
"license"
:
"UNLISENCED"
,
"license"
:
"UNLISENCED"
,
"scripts"
:
{
"scripts"
:
{
"ng"
:
"ng"
,
"ng"
:
"ng"
,
...
...
src/app/storage.service.ts
View file @
87bb7520
...
@@ -91,7 +91,7 @@ export class StorageService {
...
@@ -91,7 +91,7 @@ export class StorageService {
}
}
}
}
//
console.log('远端文件扫描完毕', this.local_files());
console
.
log
(
'
远端文件扫描完毕
'
,
this
.
local_files
());
for
(
const
local_path
of
this
.
local_files
())
{
for
(
const
local_path
of
this
.
local_files
())
{
const
remote_path
=
path
.
join
(
root
,
local_path
);
const
remote_path
=
path
.
join
(
root
,
local_path
);
...
@@ -178,7 +178,7 @@ export class StorageService {
...
@@ -178,7 +178,7 @@ export class StorageService {
async
*
walk
(
dir
:
string
):
AsyncIterable
<
Stats
>
{
async
*
walk
(
dir
:
string
):
AsyncIterable
<
Stats
>
{
const
items
:
Stats
[]
=
await
this
.
client
.
getDirectoryContents
(
dir
);
const
items
:
Stats
[]
=
await
this
.
client
.
getDirectoryContents
(
dir
);
//
console.log('取远端目录', dir, items);
console
.
log
(
'
取远端目录
'
,
dir
,
items
);
for
(
const
item
of
items
)
{
for
(
const
item
of
items
)
{
if
(
item
.
type
===
'
directory
'
)
{
if
(
item
.
type
===
'
directory
'
)
{
yield
*
this
.
walk
(
item
.
filename
);
yield
*
this
.
walk
(
item
.
filename
);
...
...
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