• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Files paths with slashes in them
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Files paths with slashes in them


  • Subject: Re: Files paths with slashes in them
  • From: Mark Williams <email@hidden>
  • Date: Tue, 23 Aug 2005 10:46:02 -0700

Well if I use a regular open file panel when I get the list of file names if any of them with slashes have been altered. I do know that slashes are illegal characters in nix paths, but this app deals with files primarily created on windows machines. Thus the file names often have slashes such as file.mpg(1/2) etc. but when I get the return from the panel it has become file.mpg(1:2) which of course does not exist so it cannot be found.
Mark


On Aug 23, 2005, at 10:14 AM, Cameron Hayne wrote:


On 23-Aug-05, at 12:57 PM, Mark Williams wrote:


I have a program that deals with files and in some cases those files might have a slash (/) in them. I realize that this is the nix separator for a path. Now when you choose the file using an open panel it automatically replaces the slash with a : and thus the file becomes invalid. How do I fix this?


You are going to have to explain your situation in more detail if we are to have any hope of helping.
I.e. given that filenames with slashes in them are illegal in Unix, how do you expect this to work?
Or, to put it another way, why do the filenames have slashes in them?


You might find it useful to read the discussion of slashes versus colons in filenames in this Usenix article:
http://www.usenix.org/publications/library/proceedings/usenix2000/ invitedtalks/sanchez_html/


--
Cameron Hayne
email@hidden






_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Files paths with slashes in them
      • From: "Sean McBride" <email@hidden>
    • Re: Files paths with slashes in them
      • From: j o a r <email@hidden>
References: 
 >Files paths with slashes in them (From: Mark Williams <email@hidden>)
 >Re: Files paths with slashes in them (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: NSOpenPanel (and Finder and Nav Serv) previews, adding support for my own file types?
  • Next by Date: Re: NSOpenPanel (and Finder and Nav Serv) previews, adding support for my own file types?
  • Previous by thread: Re: Files paths with slashes in them
  • Next by thread: Re: Files paths with slashes in them
  • Index(es):
    • Date
    • Thread