copy Unix path

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
cpb
Posts: 13
Joined: 03 Feb 2006, 23:22
Location: L.A.

copy Unix path

Post by cpb »

Copy Unix path + file as text. EG:
\\yourdomain\yourdir\afile.ext
is copied as:
/yourdomain/yourdir/afile.ext
Attachments
salen_copyUnixPath.jpg
salen_copyUnixPath.jpg (73.01 KiB) Viewed 13956 times
therube
Posts: 674
Joined: 14 Dec 2006, 06:22

Re: copy Unix path

Post by therube »

(OT, but "Upload attachment". It never dawned on me that the board even allowed that.)

So what is this a RFE?
WinXP Pro SP3 or Win7 x86 | SS 2.54
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: copy Unix path

Post by Ether »

therube wrote:(OT, but "Upload attachment". It never dawned on me that the board even allowed that.)
And I wondered why you used tinypic.
therube wrote:So what is this a RFE?
Guessing from the forum chosen for this post, yes. :D

@cbp, I'm not entirely sure what are the rules for creating such a "UNIX" path. Is it just UNC with backslashes replaced by forward slashes and without the doubled slash at the beginning? Could you tell us where you use such paths? (I don't recall any programs that would use such paths - maybe it's just a lack of knowledge on my side.)
Ελληνικά rulez.
therube
Posts: 674
Joined: 14 Dec 2006, 06:22

Re: copy Unix path

Post by therube »

And I wondered why you used tinypic.
I'm so used to NOT being able to post pics directly through a board, never occurred to me on this board.
Guessing from the forum chosen for this post, yes.
Heh. Missed that too.
I virtually always use the 'View active topics', so I totally disregard what particular forum a post is in (unless I'm actually going to start a thread).
WinXP Pro SP3 or Win7 x86 | SS 2.54
cpb
Posts: 13
Joined: 03 Feb 2006, 23:22
Location: L.A.

Re: copy Unix path

Post by cpb »

I often need to send paths to colleagues who work on osx or linux.
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: copy Unix path

Post by Ether »

Ether wrote:@cbp, I'm not entirely sure what are the rules for creating such a "UNIX" path. Is it just UNC with backslashes replaced by forward slashes and without the doubled slash at the beginning?
Please specify the way for creating UNIX paths in more detail.
Ελληνικά rulez.
User avatar
frax
Posts: 58
Joined: 23 Apr 2007, 07:24
Location: Stockholm, Sweden
Contact:

Re: copy Unix path

Post by frax »

+1 for me!

I would love to be able to paste paths into a python prompt for instance. or into the cygwin console (bash).
--
Hugo Ahlenius
User avatar
SvA
Posts: 483
Joined: 29 Mar 2006, 02:41
Location: DE

Re: copy Unix path

Post by SvA »

To build a useful unix path, Salamander needed to know where the file system is mounted. How could it possibly know this?
User avatar
frax
Posts: 58
Joined: 23 Apr 2007, 07:24
Location: Stockholm, Sweden
Contact:

Re: copy Unix path

Post by frax »

for python, one just need to replace the slashes, from backward slashes to forward slashes
--
Hugo Ahlenius
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: copy Unix path

Post by Ether »

frax wrote:for python, one just need to replace the slashes, from backwardslashes to forward slashes
Well, that's not very UNIX-like. Actually, I know only one program that needs addresses like that and it's not Python(*)(**).

*) It's Apache HTTPD (and that's only because it's mentioned in the comments and I've never tried writing it with backslashes).
**) Python can process backslashes without problems, you just need to escape them correctly or use raw strings.
Ελληνικά rulez.
therube
Posts: 674
Joined: 14 Dec 2006, 06:22

Re: copy Unix path

Post by therube »

This may help with both the mentioned Unix & Cygwin paths, copy Unix path.
WinXP Pro SP3 or Win7 x86 | SS 2.54
Post Reply