# .stignore blues

**URL:** https://forum.syncthing.net/t/stignore-blues/8066
**Category:** Support
**Created:** [August 21, 2016, 2:39pm UTC](https://forum.syncthing.net/t/stignore-blues/8066 "2016-08-21T14:39:59Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![totoba](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/b38774/32.png) [@totoba](https://forum.syncthing.net/u/totoba)
#### Post date: [August 21, 2016, 2:40pm UTC](https://forum.syncthing.net/t/stignore-blues/8066/1 "2016-08-21T14:40:00Z")

</div>

Hi

I am trying to ignore some large files and trying to get only one particular directory from a shared repo.

This is my .stfiles (which is included in .stignore)

```
!.stfiles
!@EMU
*.hdf
*

```

Emu folder is synced nicely but I still get those .hdf files inside that folder. Basically I do not want the .hdf files

thanks

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [August 21, 2016, 2:56pm UTC](https://forum.syncthing.net/t/stignore-blues/8066/2 "2016-08-21T14:56:48Z")

</div>

It stops processing ignores after hitting the first match, which I suspect is the @EMU inclusion, as its still part of the path of the file you are trying to ignore.

---

<div class="post-metadata">

### Author: ![chrisisbd](https://forum.syncthing.net/user_avatar/forum.syncthing.net/chrisisbd/32/4307_2.png) [@chrisisbd](https://forum.syncthing.net/u/chrisisbd)
#### Post date: [August 21, 2016, 3:27pm UTC](https://forum.syncthing.net/t/stignore-blues/8066/3 "2016-08-21T15:27:16Z")

</div>

You need to put the ‘\*.hdf’ in .stignore in the Emu folder

---

<div class="post-metadata">

### Author: ![totoba](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/b38774/32.png) [@totoba](https://forum.syncthing.net/u/totoba)
#### Post date: [August 22, 2016, 5:46am UTC](https://forum.syncthing.net/t/stignore-blues/8066/4 "2016-08-22T05:46:25Z")

</div>

It does not work.

I got the blues.

---

<div class="post-metadata">

### Author: ![totoba](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/b38774/32.png) [@totoba](https://forum.syncthing.net/u/totoba)
#### Post date: [August 22, 2016, 5:48am UTC](https://forum.syncthing.net/t/stignore-blues/8066/5 "2016-08-22T05:48:45Z")

</div>

I do not care how I have to layout this .stignore stuff but I just want the @EMU folder from the sync and ignore all the .hdf files from @EMU otherwise I run out of space on my device.

thanks

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [August 22, 2016, 7:42am UTC](https://forum.syncthing.net/t/stignore-blues/8066/6 "2016-08-22T07:42:22Z")

</div>

Cam you actually provide the paths of the files (both you are trying to sync and ignore) and actual content of .stignore.

---

<div class="post-metadata">

### Author: ![totoba](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/b38774/32.png) [@totoba](https://forum.syncthing.net/u/totoba)
#### Post date: [August 22, 2016, 1:18pm UTC](https://forum.syncthing.net/t/stignore-blues/8066/7 "2016-08-22T13:18:07Z")

</div>

(SYNCROOT)/@EMU _(I just want this folder from the whole SYNCROOT)_ (SYNCROOT)/@EMU/@AMI/Amik.hdf _(I do not want this file and other \*.hdf)_

(SYNCROOT)/.stignore (SYNCROOT)/.stfiles

**.stignore** `#include .stfiles`

**.stfiles** `!.stfiles !@EMU *.hdf *`

---

<div class="post-metadata">

### Author: ![wweich](https://forum.syncthing.net/user_avatar/forum.syncthing.net/wweich/32/1063_2.png) [@wweich](https://forum.syncthing.net/u/wweich)
#### Post date: [August 22, 2016, 1:29pm UTC](https://forum.syncthing.net/t/stignore-blues/8066/8 "2016-08-22T13:29:54Z")

</div>

If I understand it correctly, your `.stfiles` should have this:

```
!.stfiles
*.hdf
!@EMU
*

```

In your current `.stfile` the `*.hdf` is unnecessary because the `*` in the next line already ignores all files.

This could also work:

```
!.stfiles
!@EMU
@EMU/**.hdf
*

```

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [August 22, 2016, 1:30pm UTC](https://forum.syncthing.net/t/stignore-blues/8066/9 "2016-08-22T13:30:02Z")

</div>

I already said, move \*.hdf above @EMU

---

<div class="post-metadata">

### Author: ![totoba](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/b38774/32.png) [@totoba](https://forum.syncthing.net/u/totoba)
#### Post date: [August 22, 2016, 2:03pm UTC](https://forum.syncthing.net/t/stignore-blues/8066/10 "2016-08-22T14:03:05Z")

</div>

Sorry if I missed that part but I did not see your reply as a solution. It sounded like a comment before.

I tested @Chris\_Greens solution which did not work.

---

<div class="post-metadata">

### Author: ![totoba](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/b38774/32.png) [@totoba](https://forum.syncthing.net/u/totoba)
#### Post date: [August 22, 2016, 2:03pm UTC](https://forum.syncthing.net/t/stignore-blues/8066/11 "2016-08-22T14:03:18Z")

</div>

Thanks I will try it.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [September 21, 2016, 2:06pm UTC](https://forum.syncthing.net/t/stignore-blues/8066/12 "2016-09-21T14:06:26Z")

</div>

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