INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Excluding Directories from Views  (Read 1902 times)

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Excluding Directories from Views
« on: August 19, 2015, 10:46:57 pm »

There was a feature request recently here:

http://yabb.jriver.com/interact/index.php?topic=99538.msg689354#msg689354

It's essentially how to exclude a directory name from being displayed in a view.  But this directory might appear dozens or hundreds of times in the directories that MC knows about, so a simple directory exclusion rule in auto import won't do it.

Luckily there's an easy way to do it through the Views system directly.  Steps:

1.  Find the view you are interested in modifying and select Customize View.
2.  Settings > Included Files > Set rules for file display
3.  Add a rule with Filename (path).  Then select "does not contain".  Finally, in the next box, type the name of the directory family you want to exclude.  In the case of this example, the Original Poster wants to exclude directories named "old".  But don't just type "old".  Because that would exclude any directory with the string "old" in it.  Like "Hold Your Fire" or "My Old Loves".  Instead, type in "\old\" .  That way it only excludes directories named OLD with nothing before or after.  If you wanted to achieve different results you could use "\old" or "old\".
4.  Click OK on each window until you are back to the view.
5.  Verify that it worked.  Adjust your rule if it needs it.

Let me know if you need any help getting this working or adjusting it.

Brian.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Excluding Directories from Views
« Reply #1 on: August 20, 2015, 09:20:55 am »

Yes. This works well.  I use it in quite a few places. If you want to limit it to a particular directory, you can also specify the entire path (eg "C:\blah\blah\blah\folder\").
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Excluding Directories from Views
« Reply #2 on: August 20, 2015, 11:03:51 am »

If it's one off this works great!   

If it's a more long term thing I prefer to assign a keyword to exclude and/or auto import options to assign said keyword.  Excluding based on tags is more flexible than path but of course it depends on exact requirements

Once again, what a rich piece of software!
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Excluding Directories from Views
« Reply #3 on: August 20, 2015, 12:36:51 pm »

Yep. I usually do it by assigning a tag on import:
http://wiki.jriver.com/index.php/Tag_on_Import
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/
Pages: [1]   Go Up