Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Conversation

@tbarlow12
Copy link
Contributor

Adds capability of using all nested assets within a source directory.

Addresses #839

@tbarlow12 tbarlow12 changed the base branch from tabarlow/relative-2 to master November 4, 2020 23:25
@tbarlow12 tbarlow12 force-pushed the tabarlow/nested-dirs branch from 3339fe9 to d745a48 Compare November 4, 2020 23:26
Copy link
Contributor

@wbreza wbreza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - Added some feedback on whether we should just always default to recursive: true?

public async getAssets(
sourceConnectionFolderPath?: string,
relativePath: boolean = false,
recursive: boolean = true): Promise<IAsset[]> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to not always have recursive set??


public listFiles(folderPath: string): Promise<string[]> {
return this.listItems(path.normalize(folderPath), (stats) => !stats.isDirectory());
public async listFiles(folderPath: string, ext?: string, recursive: boolean = false): Promise<string[]> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, any reason not do always have this as true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't sure. Was leaving it open for flexibility, but I'll remove that param

@tbarlow12 tbarlow12 force-pushed the tabarlow/nested-dirs branch 2 times, most recently from 884b883 to 068fbdc Compare November 5, 2020 23:41
@tbarlow12 tbarlow12 force-pushed the tabarlow/nested-dirs branch from 068fbdc to 1911324 Compare November 5, 2020 23:43
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@jding05 jding05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tbarlow12 tbarlow12 merged commit a603a27 into master Nov 5, 2020
@tbarlow12 tbarlow12 deleted the tabarlow/nested-dirs branch November 5, 2020 23:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants