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

dlRootFolder being overridden when selected folder ends in parenthetical #72

Open
jmitrikUSAP opened this issue Mar 2, 2023 · 0 comments

Comments

@jmitrikUSAP
Copy link

First off, amazing package. This has helped me so so much already.

So I have the following in my code:

       
        const options = {
          spRootFolder: `Shared Documents/.../${selection}`,
          dlRootFolder: `*dlpath*`
        };

        SPPull.download(context, options)
          .then((downloadResults) => {
            callback()
          })

If I pass a folder name to selection with a sting of this format: 'some folder name (this is a parenthetical inside the folder name)'
then the files download to options.dlRootFolder/sites/*my_site_name*/options.spRootFolder
rather than simply to options.dlRootFolder

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

No branches or pull requests

1 participant