support UNC paths

Bug #378486 reported by Matt Wilkie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
leo-editor
Confirmed
Wishlist
Unassigned

Bug Description

Please consider adding support for UNC paths. For example the following will write foobar.cmd to %home%\foobar.cmd instead of the specified \\server\c$\scripts\foobar.cmd

[-] Headline
    @path \\server\c$\scripts
      [+] @thin foobar.cmd

Last tested on:

Leo 4.6 beta 1, build 1.244 , March 24, 2009
python 2.5.2, Tk 8.4.12, Pmw 1.3
Windows 5, 2, 3790, 2, Service Pack 2

Revision history for this message
Edward K. Ream (edreamleo) wrote : Re: [Bug 378486] [NEW] support UNC paths

On Tue, May 19, 2009 at 4:38 PM, Matt Wilkie <email address hidden> wrote:

> Public bug reported:
>
> Please consider adding support for UNC paths.

What's an UNC path?

Edward

Revision history for this message
Ville M. Vainio (villemvainio) wrote :

On Wed, May 20, 2009 at 4:07 PM, Edward K. Ream <email address hidden> wrote:

>> Please consider adding support for UNC paths.
>
>
> What's an UNC path?

Windows network share, as expressed by

 \\server\c$\scripts

Customary way to access these shares is to use SUBST to assign a drive
letter for the share. This works in all applications...

--
Ville M. Vainio
http://tinyurl.com/vainio

Revision history for this message
Matt Wilkie (maphew) wrote :

>>> Please consider adding support for UNC paths.
>>
>> What's an UNC path?

short for Universal Naming Convention.

> Windows network share, as expressed by
>
>  \\server\c$\scripts
>
> Customary way to access these shares is to use SUBST to assign a drive
> letter for the share. This works in all applications...

or PUSHD and POPD, which are easier to use than subst because you
don't need to go through the logic of determining which drive letters
are available. Subst is older, archaic even (at least since DOS3), and
guaranteed to be available. Pushd is newer, and it's UNC ability can
be disabled by a system setting (not normally a problem, I've only
seen command extensions disabled on computers with hypervigilant
security settings).

http://www.ss64.com/nt/subst.html
http://www.ss64.com/nt/pushd.html

However I doubt that mapping a drive letter is necessary. Cream (vim)
and Notepad++ and many other programs I've used can edit UNC files in
situ. I'd be quite surprised if python can't do the same natively.
There is os.path.splitunc() at least.

http://docs.python.org/library/os.path.html#os.path.splitunc

cheers,

-matt

Revision history for this message
Edward K. Ream (edreamleo) wrote :

On Wed, May 20, 2009 at 11:05 AM, Matt Wilkie <email address hidden> wrote:

> >>> Please consider adding support for UNC paths.
> >>
> >> What's an UNC path?
>
> short for Universal Naming Convention.

Thanks for this info.

Edward

Revision history for this message
Edward K. Ream (edreamleo) wrote :

Any help on this would be appreciated.

Changed in leo-editor:
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.