Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Desktop Client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
SeeBeyond
Desktop Client
Commits
a7496150
Commit
a7496150
authored
Jun 18, 2020
by
SpinShare
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore backups and SRTB Editor in library cleanup
parent
683a90ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/views/Library.vue
src/views/Library.vue
+10
-1
No files found.
src/views/Library.vue
View file @
a7496150
...
@@ -240,11 +240,20 @@
...
@@ -240,11 +240,20 @@
// Waits for resolve in order to avoid bug where all songs would be added to differingAssets
// Waits for resolve in order to avoid bug where all songs would be added to differingAssets
let
allLinkedAssetsResults
=
await
allLinkedAssetsPromise
;
let
allLinkedAssetsResults
=
await
allLinkedAssetsPromise
;
let
whitelistedFiles
=
[
"
Settings.txt
"
,
// Programmatic's SRTB Editor
"
SRTB_Editor.exe
"
,
// Programmatic's SRTB Editor
"
SRTB_Editor.pdb
"
// Programmatic's SRTB Editor
]
// Creates differingAssets by seeing if each entry in the assets folder is included in the allLinkedAssets.
// Creates differingAssets by seeing if each entry in the assets folder is included in the allLinkedAssets.
let
allFiles
=
glob
.
sync
(
path
.
join
(
userSettings
.
get
(
'
gameDirectory
'
),
"
*
"
));
let
allFiles
=
glob
.
sync
(
path
.
join
(
userSettings
.
get
(
'
gameDirectory
'
),
"
*
"
));
allFiles
.
forEach
((
file
)
=>
{
allFiles
.
forEach
((
file
)
=>
{
if
(
!
allLinkedAssetsResults
.
includes
(
file
)
&&
fs
.
statSync
(
file
).
isFile
())
{
if
(
!
allLinkedAssetsResults
.
includes
(
file
)
&&
fs
.
statSync
(
file
).
isFile
())
{
differingAssets
.
push
(
file
);
// Exclude whitelisted files & .zip files
if
(
!
whitelistedFiles
.
includes
(
path
.
basename
(
file
))
&&
!
path
.
basename
(
file
).
includes
(
"
.zip
"
))
{
differingAssets
.
push
(
file
);
}
}
}
});
});
...
...
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