Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Implement a list method #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Implement a list method #30

wants to merge 1 commit into from

Conversation

arolett2
Copy link

This change implements a barebones list method to let users see what files exist on their
drive (a nice complement to the pull function).

Right now it just dumps a list of files and directories:
If the path is a file then it is listed.
If the path is a directory then the direct children are listed.

Note this partially address issue #9.

Future work. Add options to list details about files in the cloud. Make it so users can tell files and directories apart.

This change implements a barebones list method to let users see what files exist on their
drive (a nice complement to the pull function).

Right now it just dumps a list of files and directories:
If the path is a file then it is listed.
If the path is a directory then the direct children are listed.
}

var remoteChildren []*File
if remoteChildren, err = g.rem.FindByParentId(r.Id); err != nil {
Copy link
Owner

Choose a reason for hiding this comment

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

We need to do pagination on FindByParentId. It returns only the top 100 children.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for taking a look! I implemented that in #24. Are you saying there is some additional work?

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.

2 participants