# Union root folder, or virtual folder

**URL:** <https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061>\
**Category:** Help and Support\
**Created:** [January 17, 2024, 9:22pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061 "2024-01-17T21:22:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![disconnect5852](https://forum.rclone.org/user_avatar/forum.rclone.org/disconnect5852/32/3429_2.png) [@disconnect5852](https://forum.rclone.org/u/disconnect5852)\
**Post date:** [January 17, 2024, 9:22pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/1 "2024-01-17T21:22:16Z")

</div>

Hi, i have my remotes in union, 1 crypt remote, and 1 non crypt. Actually these both are on the same remote.

Relevant part of config:

```auto
[1fichier]
type = fichier
api_key = XXX

[1fichunion]
type = union
upstreams = hasher1fichier:/ 1fichier:/noncrypt/

[backupkript1fichier]
type = crypt
remote = 1fichier:/crypt/
password = XXX
password2 = XXX

[hasher1fichier]
type = hasher
remote = backupkript1fichier:/
hashes = md5,sha1,whirlpool

```

Nor the "crypt", or the "noncrypt" folders are visible from union, so i'm thinking about how rclone decides if i create a new folder in union root, then it belongs to the "noncrypt" folder, or the crypted folder?

Is it possible to include the referenced folders too in union? So in this case to see the content of the crypt, and folder noncrypt, instead of the contents of noncrypt?

Or to create virtual folders to see the limitis of the underlying remotes? For example the crypted remote to be in folder "thecrypt", the other in "notcrypted"?

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [January 17, 2024, 9:40pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/2 "2024-01-17T21:40:08Z")

</div>

> [@disconnect5852](#):
>
> Nor the "crypt", or the "noncrypt" folders are visible from union, so i'm thinking about how rclone decides if i create a new folder in union root, then it belongs to the "noncrypt" folder, or the crypted folder?

Based on [policies](https://rclone.org/union/#function-category-classifications). `mkdir` will be driven by `create` policy - by default it is `epmfs` - "of all the upstreams on which the relative path exists choose the one with the most free space.".

> [@disconnect5852](#):
>
> Is it possible to include the referenced folders too in union? So in this case to see the content of the crypt, and folder noncrypt, instead of the contents of noncrypt?
> 
> Or to create virtual folders to see the limitis of the underlying remotes? For example the crypted remote to be in folder "thecrypt", the other in "notcrypted"?

Are you sure you want to use union? Its purpose is exactly to hide all underlying remotes and present them as an union:) Maybe `combine` remote is what you should look at - then you can create virtual folders pointing to deferent remotes.

Example:

```auto
[combine]
type = combine
upstreams = thecrypt=backupkript1fichier: notcrypted=1fichier:noncrypt

```

---

<div class="post-metadata">

**Author:** ![disconnect5852](https://forum.rclone.org/user_avatar/forum.rclone.org/disconnect5852/32/3429_2.png) [@disconnect5852](https://forum.rclone.org/u/disconnect5852)\
**Post date:** [January 20, 2024, 12:01pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/3 "2024-01-20T12:01:29Z")

</div>

Unfortunately combine seems to be bugged with 1fichier: i get messages like these `2024/01/20 12:53:55 ERROR : nonkripta/20200225_135330.JPG: Entry doesn't belong in directory "nonkripta/moccvid/2020/20200225" (too short) - ignoring`

all files are missing from folder "moccvid", only folders are visible, but even some folders are not visible. All visible from union/ or if i open the remote directly.  
here is the combine setting:

```auto
[1fichunion2]
type = combine
upstreams = kripta=hasher1fichier:/ nonkripta=1fichier:/nemkripta

```

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [January 20, 2024, 2:13pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/4 "2024-01-20T14:13:37Z")

</div>

> [@disconnect5852](#):
>
> Unfortunately combine seems to be bugged with 1fichier: i get messages like these `2024/01/20 12:53:55 ERROR : nonkripta/20200225_135330.JPG: Entry doesn't belong in directory "nonkripta/moccvid/2020/20200225" (too short) - ignoring`

Nobody can see what you are doing and what this error relates to.

Do not use "/" after remote names, so:

```auto
[1fichunion2]
type = combine
upstreams = kripta=hasher1fichier: nonkripta=1fichier:nemkripta

```

Then run for example

`rclone ls 1fichier:nemkripta`

and

`rclone ls 1fichunion2:nonkripta`

Both commands should produce the same results.

---

<div class="post-metadata">

**Author:** ![disconnect5852](https://forum.rclone.org/user_avatar/forum.rclone.org/disconnect5852/32/3429_2.png) [@disconnect5852](https://forum.rclone.org/u/disconnect5852)\
**Post date:** [January 21, 2024, 9:05pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/5 "2024-01-21T21:05:16Z")

</div>

removed "/"s, the results not changed, so not the same for the 2 ls commands, see the errors above, same files same folders are `Entry doesn't belong in directory` while all obviously do.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [January 21, 2024, 9:15pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/6 "2024-01-21T21:15:12Z")

</div>

I have replicated your exact `combine` setup (mixing crypt and no crypt on the same remote) and everything works as expected. Zero issues - nothing is missing, no errors. I have tested with two different remotes (onedrive and S3)

It is possible that `1fichier` has some issues/bugs not present at other remotes. Maybe some other `1fichier` users here can try setup similar to yours and help to identify the problem.

Unfortunately `1fichier` requires premium subscription to use the API so I am not able to test or investigate further.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [January 21, 2024, 9:40pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/7 "2024-01-21T21:40:56Z")

</div>

BTW `1fichier` does not look like service people rate well...

> **[1fichier.com is rated "Poor" with 2 / 5 on Trustpilot](https://uk.trustpilot.com/review/1fichier.com)**
>
> Do you agree with 1fichier.com's TrustScore? Voice your opinion today and hear what 118 customers have already said.

In addition looks like it is blocked in many countries.

---

<div class="post-metadata">

**Author:** ![DarrenPIngram](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/ed655f/32.png) [@DarrenPIngram](https://forum.rclone.org/u/DarrenPIngram)\
**Post date:** [January 23, 2024, 1:55pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/8 "2024-01-23T13:55:39Z")

</div>

> [@kapitainsky](#):
>
> It is possible that `1fichier` has some issues/bugs not present at other remotes. Maybe some other `1fichier` users here can try setup similar to yours and help to identify the problem.

They are certainly a very problametic host with very "interesting" ideas of support. I tried using it as a secondary backup source and let's just say if I wasn't bald I'd be still having no hair. IP blocking on a whim and the support refusing to even give information to help you reduce the issue ("security" ha) doesn't help.

There's no security risk saying your IP ending with 123 made 455 calls in one minute or something [made up example] to help you look at say transactions or activity, but "you raised a security issue, fix it, the longer it goes on the longer we block" is hardly helpful.

They are, of course, cheap for a reason.

I'd try and run a test but for the foreseeable future I'm a bit tied up and, in any case, the last time I tried the IP was blocked....

---

<div class="post-metadata">

**Author:** ![disconnect5852](https://forum.rclone.org/user_avatar/forum.rclone.org/disconnect5852/32/3429_2.png) [@disconnect5852](https://forum.rclone.org/u/disconnect5852)\
**Post date:** [January 27, 2024, 12:34pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/9 "2024-01-27T12:34:26Z")

</div>

these problems for me only happen in combine, but not in union, or without these

---

<div class="post-metadata">

**Author:** ![disconnect5852](https://forum.rclone.org/user_avatar/forum.rclone.org/disconnect5852/32/3429_2.png) [@disconnect5852](https://forum.rclone.org/u/disconnect5852)\
**Post date:** [February 25, 2024, 6:18pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/10 "2024-02-25T18:18:19Z")

</div>

I still wondering, if the file/directory structure is looks as is in union, and separate remotes, but its wrong in combine. Even if 1fichier is not a nice provider, the reason for combine is not the provider, else there would be problems with other types of remotes that are using 1 fichier

---

<div class="post-metadata">

**Author:** ![DarrenPIngram](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/ed655f/32.png) [@DarrenPIngram](https://forum.rclone.org/u/DarrenPIngram)\
**Post date:** [February 25, 2024, 6:35pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/11 "2024-02-25T18:35:27Z")

</div>

Everything I tried about 1Fichier was, err, underwhelming. Whether terrible peering [from several EU data points tested], dire upload speeds and over-active IP blocking even as one single rclone remote [and screwing things like transfers down]. At the end of the day I wasted a lot of time and a small amount of money.

My time/needs were above what little they provided. Some people seem to like them, but when viewing places like "Trustpilot" it seems to have a somewhat low score for customer happiness. But, as I will always say to people when they ask my view about X, maybe try it yourself even if I did and didn't like it/get on with it/had problems.

---

<div class="post-metadata">

**Author:** ![disconnect5852](https://forum.rclone.org/user_avatar/forum.rclone.org/disconnect5852/32/3429_2.png) [@disconnect5852](https://forum.rclone.org/u/disconnect5852)\
**Post date:** [March 17, 2024, 9:00pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/12 "2024-03-17T21:00:33Z")

</div>

Same with 1.66.0, ignores directories in combine with messages like:

```auto
2024/03/17 21:47:56 ERROR : nonkripta/20211017_115020 Szénavár 2569út.MP4: Entry doesn't belong in directory "nonkripta/moccvid/2021/20211017_Málnahegy-Nyustya-Cered" (too short) - ignoring

```

The right one would be the expected structure (and nearly the same as the underlying real structure), the left one is don't know why and how created...

upstreams for combine remote: `kripta=hasher1fichier:/ nonkripta=1fichier:/nemkripta`  
hasher1fichier is a hasher remote wrapped crypt remote using the direct 1fichier remote. Both work correctly without combine, even in union.

---

<div class="post-metadata">

**Author:** ![disconnect5852](https://forum.rclone.org/user_avatar/forum.rclone.org/disconnect5852/32/3429_2.png) [@disconnect5852](https://forum.rclone.org/u/disconnect5852)\
**Post date:** [April 16, 2024, 8:36pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/13 "2024-04-16T20:36:32Z")

</div>

perhaps i should check this bug. But it's not so simple to install go dev env as java, python, or c#...

---

<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:** [May 16, 2024, 8:36pm UTC](https://forum.rclone.org/t/union-root-folder-or-virtual-folder/44061/14 "2024-05-16T20:36:56Z")

</div>

Closed on May 16, 2024, 8:36pm UTC

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