-
Notifications
You must be signed in to change notification settings - Fork 46
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
Recursive List Items #108
Comments
Right now there is no built-in support for recursive directory listing. You could write something up yourself where you check for directories in the returned list and call |
Understood, thanks! |
recursive will be handly specially when you are deleting subfolders, |
@msgoussi recursive deleting of subfolders should already be handled automatically |
I created a gist for a very basic approach for a recursive file and directory listing function using a for loop. |
I also ended up writing something to do this https://gist.github.com/jonocarroll/d5d315f1504d4cf8a06caf0bfdf58af5 This uses a depth-first search to recursively list the files and folders and doesn't have additional dependencies (base R). I use |
I've started developing a package, {sharepointr}, to build out some "missing" features for Documentation is here: https://elipousson.github.io/sharepointr/reference/sp_dir_info.html Code is here: https://github.com/elipousson/sharepointr/blob/HEAD/R/sp_dir.R |
@elipousson that looks incredible! |
Is there a way for list_items() to work recursively in directories? If not, this feature would be very handy to have.
First, to make sure I'm not misunderstanding how to use the package, I can run all of the following commands successfully:
But when i try to use filter with a name in one of the subfolders, doesn't seem to get results.
I've seen that there are some ways to do recursive operations by looking up child directories in for loops, but that seems like a non-starter for the volume of directories I need to iterate over, each of which with their own folder hierarchy.
My overall goal is to replicate something like the search feature on Sharepoint--I need to return a dataframe of document metadata for documents with a specific name scattered throughout our Sharepoint site.
The text was updated successfully, but these errors were encountered: