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 filemanger fetch error #387

Merged
merged 2 commits into from
Nov 13, 2020
Merged

Fix filemanger fetch error #387

merged 2 commits into from
Nov 13, 2020

Conversation

anthmatic
Copy link
Contributor

@anthmatic anthmatic commented Nov 12, 2020

Description and Context

While tracking down another bug, I found that the filemanger fetch command was failing when fetching folders due to a change in #339 that moved the logic for creating writeStreams and it looks like I missed updating this command as well.

@@ -174,6 +154,19 @@ async function fetchAllPagedFiles(accountId, folderId, { includeArchived }) {
* @param {object} options
*/
async function fetchFolderContents(accountId, folder, dest, options) {
try {
await fs.ensureDir(dest);
logger.log('Wrote folder "%s"', dest);
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor, but I think that this assumes that the folder needs to be created.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I just removed for now since I directory creation is implied

@anthmatic anthmatic merged commit a6cb8f7 into master Nov 13, 2020
@anthmatic anthmatic deleted the fix/filemanager-fetch-error branch November 13, 2020 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants