• 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: How to rename a filename in uppercase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to rename a filename in uppercase


  • Subject: Re: How to rename a filename in uppercase
  • From: Gerd Knops <email@hidden>
  • Date: Sun, 20 Jan 2008 17:37:38 -0600


On Jan 20, 2008, at 1:27 PM, Simone Tessaro wrote:

2008/1/20, Mike Abdullah <email@hidden>:

On 20 Jan 2008, at 17:36, Simone Tessaro wrote:

Hi,
i've a question. I'm trying to write some code that make a filename in
uppercase. i wrote a thing like that:
[defaultManager movePath:@"foo.txt" toPath:@"FOO.txt" handler:nil];

What happens if you implement a handler? Any indication of why it might be failing?

I did it. and this is the result: {Error = "Already Exists"; Path = "/Users/username/Desktop/foo.txt"; }

so the problem could be something about the case-sensitiveness.

This will only work if the underlying file system is case sensitive. HFS just plays a case sensitive file system on TV, but in reality it is not.


Simple test: In a terminal window go to some directory and

	touch foo
	touch FOO

On a real cases sensitive file system you end up with 2 files, foo and FOO. But on most file systems OS X systems use, it will be just 1 file.

Gerd

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to rename a filename in uppercase
      • From: Chris Suter <email@hidden>
References: 
 >How to rename a filename in uppercase (From: "Simone Tessaro" <email@hidden>)
 >Re: How to rename a filename in uppercase (From: Mike Abdullah <email@hidden>)
 >Re: How to rename a filename in uppercase (From: "Simone Tessaro" <email@hidden>)

  • Prev by Date: Drag and Drop and Text Field Problem...
  • Next by Date: Re: How to rename a filename in uppercase
  • Previous by thread: Re: How to rename a filename in uppercase
  • Next by thread: Re: How to rename a filename in uppercase
  • Index(es):
    • Date
    • Thread