Copy Unix path + file as text. EG:
\\yourdomain\yourdir\afile.ext
is copied as:
/yourdomain/yourdir/afile.ext
copy Unix path
copy Unix path
- Attachments
-
- salen_copyUnixPath.jpg (73.01 KiB) Viewed 14286 times
Re: copy Unix path
(OT, but "Upload attachment". It never dawned on me that the board even allowed that.)
So what is this a RFE?
So what is this a RFE?
WinXP Pro SP3 or Win7 x86 | SS 2.54
Re: copy Unix path
And I wondered why you used tinypic.therube wrote:(OT, but "Upload attachment". It never dawned on me that the board even allowed that.)
Guessing from the forum chosen for this post, yes.therube wrote:So what is this a RFE?
@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.
Re: copy Unix path
I'm so used to NOT being able to post pics directly through a board, never occurred to me on this board.And I wondered why you used tinypic.
Heh. Missed that too.Guessing from the forum chosen for this post, yes.
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
Re: copy Unix path
I often need to send paths to colleagues who work on osx or linux.
Re: copy Unix path
Please specify the way for creating UNIX paths in more detail.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?
Ελληνικά rulez.
Re: copy Unix path
+1 for me!
I would love to be able to paste paths into a python prompt for instance. or into the cygwin console (bash).
I would love to be able to paste paths into a python prompt for instance. or into the cygwin console (bash).
--
Hugo Ahlenius
Hugo Ahlenius
Re: copy Unix path
To build a useful unix path, Salamander needed to know where the file system is mounted. How could it possibly know this?
Re: copy Unix path
for python, one just need to replace the slashes, from backward slashes to forward slashes
--
Hugo Ahlenius
Hugo Ahlenius
Re: copy Unix path
Well, that's not very UNIX-like. Actually, I know only one program that needs addresses like that and it's not Python(*)(**).frax wrote:for python, one just need to replace the slashes, from backwardslashes to forward slashes
*) 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.
Re: copy Unix path
This may help with both the mentioned Unix & Cygwin paths, copy Unix path.
WinXP Pro SP3 or Win7 x86 | SS 2.54