• nihilist_hippie@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    4 days ago

    Not sure what you mean by ‘pull a folder’. Copy?

    Here’s the Powershell command to copy a directory:

    Copy-Item -Path "C:\source\folder" -Destination "D:\destination" -Recurse

    Modify to your use case!

    • Safipok@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      4 days ago

      So, I have a folder in OneDrive of my company. But, everytime I try to download the huge structure it fails. I was wondering if there is any command to copy the whole structure.

      • nihilist_hippie@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        4 days ago

        Have you tried the command above? What about the OneDrive desktop app? (I know you want command line but I’m just checking)

        • Safipok@lemmy.mlOP
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          Yeah, I ended up just signing in to onedrive on the desktop. I initially did not want to sign in, but I was forced to anyway.

  • Zachariah@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    4 days ago

    If you right-click on a OneDrive folder (or subfolder), you can choose to have it always keep a local copy.

    After that, you’ll have much more success doing things to these files (such as bulk copy) that normally work just fine on regular local folders.

    • Safipok@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Yeah, I ended up doing this. I initially did not want to sign in, but I was forced to anyway.