Jump to content
Muxe Inc Forums
Sign in to follow this  
dandv

Strip surrounding double quotes in MkDir (F7)

Recommended Posts

dandv    0

1. Suppose you want to mirror a directory structure from the right panel into the left panel.

2. To do that, put the cursor on a directory whose name contains a space and press Ctrl+Insert

3. In the clipboard, you'll have the directory's name, say

"a b"

4. Go to the left panel and press F7, Shift+Insert.

5. NDN won't be able to create the directory because it didn't strip the surrounding quotes.

 

The same happens for copying/moving a file to a path surrounded by quotes.

 

Hope that helps,

Dan Dascalescu

Share this post


Link to post
Share on other sites

hey!

 

i know the issue

 

in general:

i am no fan of programs that second-guess you and want to correct the user

 

in my opinion NDN should not change the input of the makedir inputline (some programs won't allow you to create ' 123' directories because of the leading spaces, although it is no problem for the OS)

 

what you type in is going to be created

if the OS doesn't allow it you made something wrong

not NDN ;)

 

COPY/MOVE also doesn't check for the double quotes

(just checked)

 

what do the other users think about this?

 

Stefan / AH

Share this post


Link to post
Share on other sites
dandv    0
what you type in is going to be created

if the OS doesn't allow it you made something wrong

not NDN ;)

Uhm, it's not that simple...

 

If you call the OS function to create a directory with the directory name as a string parameter, naturally you don't have to include the quotes in the string, because the string is self-delimited.

 

If you enter that name in the command line to mkdir, you do have to enclose the string between quotes. So NDN actually guesses what the user wants to do (i.e. paste the name in the command line of some program) so it adds the quotes! If NDN just left the name without quotes, it would work in F7 and would also work in Explorer when you choose New -> Folder and so on, in places where the entire string you entered is interpreted as a SINGLE filename/directory name. But it won't work on the command line.

 

So, let's admit that NDN does guess :-)

 

And by the way, since you don't usually copy then paste filenames to the NDN command line because you have Ctrl+Enter directly, it's not even a very helpful guess... It helps for other command prompt windows maybe and... where else?

Share this post


Link to post
Share on other sites
Garl    0

>what do the other users think about this?

 

if i input "My Documents" in make directory dialog

i think NDN must create My Documents dir :)

 

or option in Manager setup like ignore " in inputline

 

thanks...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×