Page 1 of 1

Folder name vs. full name

PostPosted: Thu May 26, 2016 12:38 am
by invictus26
I'm trying to make a rule that will add a date to files added to a folder. I added a condition:

Code: Select all
Name - does not match - <number>.<number>.<number><anything>


So that it won't match again after adding the timestamp in the "format year.month.day - name". This seems to work fine for files, but not for folders. When I preview the rule against a folder named "2016.5.15 - Awesome Stuff", it shows "Name: 2016.5", and it shows that the condition matches. If I change the condition to use "Full Name", it correctly shows the complete folder name and that the condition does not match.

I'm just wondering why the name is truncated for folders and if there is any downside to using the "Full Name" attribute. Thanks!

Re: Folder name vs. full name

PostPosted: Thu May 26, 2016 9:47 am
by Mr_Noodle
The problem here is that anything after the period is considered the extension, not the name. So, yes, you want to use Full name here.

Re: Folder name vs. full name

PostPosted: Sun May 29, 2016 12:29 am
by invictus26
The problem here is that anything after the period is considered the extension, not the name.


But "Name" works fine for files, only folders have the problem. Is that expected?

Re: Folder name vs. full name

PostPosted: Mon May 30, 2016 11:23 am
by Mr_Noodle
Can you show me a case of that? It's pretty consistent from what I've seen.

Re: Folder name vs. full name

PostPosted: Thu Jun 02, 2016 1:28 am
by invictus26
I have two items in my Temp folder:

"2016.5.10 - Tmux Config.md"
"2016.5.20 - Test Folder"

This is the preview result for the file:
Image

And the folder:
Image

Re: Folder name vs. full name

PostPosted: Thu Jun 02, 2016 10:38 am
by Mr_Noodle
Note in the first case, the extension is md. It just so happens you don't have the equivalent for the folder so it's grabbing .20....

Re: Folder name vs. full name

PostPosted: Thu Jun 02, 2016 1:30 pm
by invictus26
Ah, ok. I guess that makes sense. Thanks!