Go Back   Cockos Incorporated Forums > REAPER Forums > Dstruct's Casa De Nitpicks

Reply
 
Thread Tools Display Modes
Old 11-24-2012, 09:41 AM   #1
miche
Human being with feelings
 
miche's Avatar
 
Join Date: Jan 2009
Posts: 559
Default a "/" in a region name creates a new folder when rendering region with $regionname

I just noted that when you do a region render using the $regionname wildcard, and when there is a slash "/" in the region name, a new folder is created.

I don't know if this is an expected behavior or if it should be replaced with another character?

This happened with Reaper x64 on Win7x64.
miche is offline   Reply With Quote
Old 12-01-2012, 10:08 AM   #2
miche
Human being with feelings
 
miche's Avatar
 
Join Date: Jan 2009
Posts: 559
Default

Just bumping my question to know if this is a bug, a "live with it" problem, or an expected behavior

Anyone?
miche is offline   Reply With Quote
Old 12-01-2012, 12:41 PM   #3
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,769
Default

yeah don't put slashes there :-)
Coachz is offline   Reply With Quote
Old 12-01-2012, 02:21 PM   #4
miche
Human being with feelings
 
miche's Avatar
 
Join Date: Jan 2009
Posts: 559
Default

Quote:
Originally Posted by Coachz View Post
yeah don't put slashes there :-)
I hope the devs can fix me
miche is offline   Reply With Quote
Old 12-01-2012, 03:20 PM   #5
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,769
Default

its a BAD idea. filenames cannot have slashes in them
Coachz is offline   Reply With Quote
Old 12-01-2012, 04:55 PM   #6
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,260
Default

Quote:
Originally Posted by miche View Post
I hope the devs can fix me
As coachz says, that's an illegal filename character. The only thing they could do to fix is replace it with another character which you can already do when you name the file.

Quote:
The following characters are invalid as file or folder names on Windows using NTFS:
/ ? < > \ : * | ” and any character you can type with the Ctrl key
It is however legal as a folder delimiter thus the reason it creates the folder, you told it to of sorts. Try to rename a text file on your desktop to something with a slash, it won't let you.
karbomusic is offline   Reply With Quote
Old 12-02-2012, 10:30 AM   #7
miche
Human being with feelings
 
miche's Avatar
 
Join Date: Jan 2009
Posts: 559
Default

I agree with both of you, slashes are not expected in file names. My question was more general:

Region names are not necessarily meant to be file names, and therefore it is not "illegal" to have a slash in there. If for whatever reason, at some time, you need to do a render of those regions including their name for clarity, are you really supposed to remove them all manually?
miche is offline   Reply With Quote
Old 12-02-2012, 10:46 AM   #8
semiquaver
Human being with feelings
 
Join Date: Jun 2008
Posts: 4,923
Default

on the other hand that could be cool...

you could render the region with a new rpp into a directory if you want....
semiquaver is offline   Reply With Quote
Old 12-02-2012, 10:49 AM   #9
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,769
Default

I come from the perspective that i'm going to render my regions to files and /'s are not allowed so i don't put them in the regions.
Coachz is offline   Reply With Quote
Old 12-02-2012, 12:30 PM   #10
semiquaver
Human being with feelings
 
Join Date: Jun 2008
Posts: 4,923
Default

/ *is* allowed in pathnames. But indicates a change in directory. foo/bar is a file bar in a directory foo. It is always nice to be able to use this shorthand rather than tediously create directories and then populate them.
semiquaver is offline   Reply With Quote
Old 12-02-2012, 01:46 PM   #11
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,260
Default

Quote:
Originally Posted by miche View Post
I agree with both of you, slashes are not expected in file names. My question was more general:

Region names are not necessarily meant to be file names, and therefore it is not "illegal" to have a slash in there. If for whatever reason, at some time, you need to do a render of those regions including their name for clarity, are you really supposed to remove them all manually?
Knowing I may be rendering them, I would never use a slash to begin with. Actually, due to the illegality of them in filenames, I simply don't use / or \ in anything that could ever be a filename because I know I'll eventually get bitten. I would imagine Reaper creates the folder if it doesn't exist which really makes it a feature allowing you to create the folder as part of the process instead of pre-creating them. Quite handy if you think of the possiblilities.

Last edited by karbomusic; 12-02-2012 at 01:51 PM.
karbomusic is offline   Reply With Quote
Old 12-27-2012, 05:43 AM   #12
mikeroephonics
Human being with feelings
 
mikeroephonics's Avatar
 
Join Date: Nov 2006
Posts: 2,533
Default

I think it's safe to say that using "\" or "/" is bad practice, due to them being invalid characters for file names.

I recommend using these:
{ }
[ ]
-
_

These are what I use and I don't have any problems with them.
__________________
Please check out these MIDI requests: http://forum.cockos.com/showthread.php?t=103192
Thanks.
mikeroephonics is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.