Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug in ignoreUploadFolder #811

Merged
merged 1 commit into from
Apr 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix bug in ignoreUploadFolder
  • Loading branch information
knyhle committed Mar 27, 2019
commit 810c5aa2e9adbf8c5adf32a5806bd395cf9637b1
4 changes: 2 additions & 2 deletions src/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ export class Sync {
contentFiles = contentFiles.filter((contentFile: File) => {
const matchedFolders = customSettings.ignoreUploadFolders.filter(
folder => {
return contentFile.filePath.indexOf(folder) === -1;
return contentFile.filePath.indexOf(folder) !== -1;
}
);
return matchedFolders.length > 0;
return matchedFolders.length === 0;
});
}
const customFileKeys: string[] = Object.keys(
Expand Down