# Config Designation of Directory as Mount Point

**URL:** https://forum.syncthing.net/t/config-designation-of-directory-as-mount-point/9348
**Category:** Feature
**Created:** [March 3, 2017, 7:14pm UTC](https://forum.syncthing.net/t/config-designation-of-directory-as-mount-point/9348 "2017-03-03T19:14:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![increa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/dfb087/32.png) [@increa](https://forum.syncthing.net/u/increa)
#### Post date: [March 3, 2017, 7:14pm UTC](https://forum.syncthing.net/t/config-designation-of-directory-as-mount-point/9348/1 "2017-03-03T19:14:48Z")

</div>

> [@Propagating File Deletes](https://forum.syncthing.net/t/propagating-file-deletes/9230/4):
>
> It’s not obvious to me how we would do this better in an automatic, cross platform way - but I’m open to suggestions.

Another month into using Syncthing, I’d like to resubmit the idea to allow any syncroot or sync subdirectory to be named in the configuration file as a mount point. Then Syncthing will only run if the mount is present. This is consistent with Syncthing’s design principle #1 - protecting user data integrity.

Cross-platform, detection of a mount? I know how I’d try to do it in Linux, but that goes beyond my skillset in other OSes. Help, anybody?

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [March 4, 2017, 6:31am UTC](https://forum.syncthing.net/t/config-designation-of-directory-as-mount-point/9348/2 "2017-03-04T06:31:54Z")

</div>

How about

> [@Propagating File Deletes](https://forum.syncthing.net/t/propagating-file-deletes/9230/12):
>
> I could see this possibly being done by allowing there to be more than one “.stfolder” and with a configurable name. I think there’s an issue for the name already, somewhere in the tracker. You could then say that the folder markers are {.stfolder, foo/bar/shouldAlwaysExist} and if either of those are missing the folder is stopped.

from the same thread?

---

<div class="post-metadata">

### Author: ![increa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/i/dfb087/32.png) [@increa](https://forum.syncthing.net/u/increa)
#### Post date: [March 4, 2017, 12:49pm UTC](https://forum.syncthing.net/t/config-designation-of-directory-as-mount-point/9348/3 "2017-03-04T12:49:45Z")

</div>

Sounds reasonable. You’re leaning more toward putting a special file in the special directories. I was thinking more to just name the special directories with no special files present, but maybe your idea dovetails better into the architecture that is already there. I wish I was a Go programming expert and could dive into the code to answer my own questions.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [March 4, 2017, 1:04pm UTC](https://forum.syncthing.net/t/config-designation-of-directory-as-mount-point/9348/4 "2017-03-04T13:04:21Z")

</div>

Just naming a directory still leaves us without an obvious way to determine if it’s mounted or not. Naming a special file in the directory that must always be present accomplishes both things simpler.
