# \--drive-shared-with-me problem

**URL:** <https://forum.rclone.org/t/drive-shared-with-me-problem/13663>\
**Category:** Suspected Bug\
**Created:** [January 4, 2020, 6:09am UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663 "2020-01-04T06:09:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![clckwerk](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@clckwerk](https://forum.rclone.org/u/clckwerk)\
**Post date:** [January 4, 2020, 6:09am UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663/1 "2020-01-04T06:09:25Z")

</div>

`--drive-shared-with-me problem` doesn't comply with same folder protocol. It creates another folder with the exact same name regardless if it already exists.

How do I prevent it from creating a new folder every single time?

Edit: It happens on individual files too.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [January 4, 2020, 10:24am UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663/2 "2020-01-04T10:24:07Z")

</div>

This is a known issue

> <https://github.com/rclone/rclone/issues/3132>
>
> What is the problem you are having with rclone?
> If you run a server side copy twice, you get two of the...

Which I haven't got round to fixing yet (mostly because I can't figure out how!)

You can work around it I think by creating a duplicate drive, one with the `shared_with_me = true` parameter, then when you want to copy between them copy from `shared_drive` to `normal_drive` and you won't get the duplicate. You'll need to set `--drive-server-side-across-configs`

Perhaps a better solution would be for `--drive-shared-with-me` to show all the shared files **and** all of you own files?

---

<div class="post-metadata">

**Author:** ![clckwerk](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@clckwerk](https://forum.rclone.org/u/clckwerk)\
**Post date:** [January 4, 2020, 10:57am UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663/3 "2020-01-04T10:57:33Z")

</div>

> [@ncw](#):
>
> --drive-server-side-across-configs

Yes i'm already using this.

For me, the workaround is to do multiple `rclone copy` of the various folder from `shared with me` folder. Can't dump the main folder directly. Need to segregate the various subfolders. ALSO, **dont use any directory** for the **destination** remote (X:).

e.g.  
Shared with me = drive:maxfolder --drive-shared-with-me  
To do a copy,  
rclone copy drive:maxfolder/1 X:  
rclone copy drive:maxfolder/2 X:  
rclone copy drive:maxfolder/3 X:  
rclone copy drive:maxfolder/4 X:  
and so on,

Afterwhich, manually transfer folders 1-4 from X: to the intended destination. This is the only way not to have duplicates.

It would help if rclone had a flag to grab ALL files ignoring the directory. Meaning "files in folders" flag, including nested subfolers. Don't know if it exists, but would be helpful if you shed a light on that. It will be messy but I could then easiy dump `rclone copy drive:maxfolder X:` knowing only files are on X:

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [January 4, 2020, 1:18pm UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663/4 "2020-01-04T13:18:30Z")

</div>

Interesting work around 🙂

> [@clckwerk](#):
>
> It would help if rclone had a flag to grab ALL files ignoring the directory. Meaning "files in folders" flag, including nested subfolers. Don't know if it exists, but would be helpful if you shed a light on that. It will be messy but I could then easiy dump `rclone copy drive:maxfolder X:` knowing only files are on X:

You are after a `--flatten` flag or something like that I think.

---

<div class="post-metadata">

**Author:** ![clckwerk](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@clckwerk](https://forum.rclone.org/u/clckwerk)\
**Post date:** [January 4, 2020, 2:03pm UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663/5 "2020-01-04T14:03:23Z")

</div>

> [@ncw](#):
>
> `--flatten`

Is it on rclone? Can't find it.

I just discovered `--drive-shared-with-me` is essentially a pseudo public link. I could copy from other remotes unrelated to it whatsoever (different drive). This changes everything.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [January 4, 2020, 9:49pm UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663/6 "2020-01-04T21:49:31Z")

</div>

> [@clckwerk](#):
>
> Is it on rclone? Can't find it.

Not yet, no.

> [@clckwerk](#):
>
> I just discovered `--drive-shared-with-me` is essentially a pseudo public link. I could copy from other remotes unrelated to it whatsoever (different drive). This changes everything.

What do you mean?

---

<div class="post-metadata">

**Author:** ![clckwerk](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@clckwerk](https://forum.rclone.org/u/clckwerk)\
**Post date:** [January 4, 2020, 11:35pm UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663/7 "2020-01-04T23:35:28Z")

</div>

> [@ncw](#):
>
> What do you mean?

[titan@gmail.com](mailto:titan@gmail.com) = titan:  
[zeus@gmail.com](mailto:zeus@gmail.com) = zeus:

titan: is the one that has files in shared with me.  
zeus: empty shared with me

But when you copy titan: zeus: it works. Making it "pseudo" public.

---

<div class="post-metadata">

**Author:** ![mesol](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@mesol](https://forum.rclone.org/u/mesol)\
**Post date:** [March 13, 2020, 10:15am UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663/8 "2020-03-13T10:15:18Z")

</div>

If we use this workaround, the transfer will be counted as server-side?

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [June 11, 2020, 10:26am UTC](https://forum.rclone.org/t/drive-shared-with-me-problem/13663/9 "2020-06-11T10:26:06Z")

</div>

Closed on June 11, 2020, 10:26am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
