MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: $PathnameSeparator and DirectoryName

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71150] Re: $PathnameSeparator and DirectoryName
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 9 Nov 2006 03:38:43 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <eisenq$m68$1@smc.vnet.net>

Hi,

a) you are not able to give us the code that you 
use ?
b) a file form a unix file system will under 
Windows have
   backslashes  and you don't need this
c) Windows understand path names with a slash, 
i.e.,
   c:/Windows/System32 will work and mixture of 
back and forward
   slashes c:\Windows/System32 will work as well

so it is total useless what you are doing and 
finaly why not use
StringReplace[string, "\\"->"/"]
??
Regards
  Jens

"Chris Chiasson" <chris at chiasson.name> schrieb im 
Newsbeitrag news:eisenq$m68$1 at smc.vnet.net...
| Why is it that reading in a list of Unix file 
path strings, Blocking
| $PathnameSeparator = "/" and (underneath the 
Block) using
| DirectoryName on the paths doesn't work on 
Windows' Mathematica? It
| just returns empty strings.
|
| -- 
| http://chris.chiasson.name/
| 



  • Prev by Date: [Admin] Mailing list duplicates etc
  • Next by Date: Re: Points sampled by FindMinimum
  • Previous by thread: Re: $PathnameSeparator and DirectoryName
  • Next by thread: Pythonika: Python in Mathematica