Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I skip directories? #256

Unanswered
telometto asked this question in Q&A
Nov 30, 2022 · 3 comments · 2 replies
Discussion options

I can't seem to get it to work; I've tried not name:, not contains: and several other variants, but none seem to work - what am I doing wrong?

You must be logged in to vote

Replies: 3 comments 2 replies

Comment options

I realize that this is a month late. If you're still trying to sort it out (or for those that find this question in a Google search), you need to use the "exclude_dirs" option described on this page:

https://organize.readthedocs.io/en/latest/locations/

You must be logged in to vote
2 replies
Comment options

I had forgotten about this. Yeah, I found you can do it with the following syntax:

rules:
 - name: "Sorting documents in \"documents\""
 locations:
 - path: "documents"
 exclude_dirs: ['github', 'variety', 'dotfiles', '.config', '.local']
 subfolders: true
 filters:
 - created
 - name
 - extension: *doc
 actions:
 - echo: "{path}"
 - move: "documents/{created.strftime('%Y')}/{created.strftime('%m')}/{created.strftime('%d')}/{extension.lower()}/{name | replace(' ', '_') | lower()}.{extension.lower()}"

I noticed that with the following setup, though, you cannot declare multiple dirs in path.

Comment options

the "no multiple dirs" is a deal breaker :(

Comment options

I struggle with skipping directories as well. Taking the example from above I might have:

documents/.config
documents/subdir/.config
documents/othersubdir/.config
documents/othersubdir/test/.config

If I just want to exclude documents/othersubdir/.config how can I do that?

rules:
 - name: "Sorting documents in \"documents\""
 locations:
 - path: "documents"
 exclude_dirs: ['documents/othersubdir/.config']
 subfolders: true

or

rules:
 - name: "Sorting documents in \"documents\""
 locations:
 - path: "documents"
 exclude_dirs: ['othersubdir/.config']
 subfolders: true

does not work in my case.

You must be logged in to vote
0 replies
Comment options

 filters:
 - not mimetype: "inode/directory"

This might work

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /