• 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
Changing the case of a filename?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing the case of a filename?


  • Subject: Changing the case of a filename?
  • From: Steve Gehrman <email@hidden>
  • Date: Mon, 13 Aug 2001 23:43:00 -0700

What is the proper way of changing the case of a file's name? The movePath routine does nothing!

BOOL result = [[NSFileManager defaultManager] movePath:@"/Users/joe/Hello.c" toPath:@"/Users/joe/hello.c" handler:nil];

I could do some lame hack like renaming the file to a temporary name and then back to hello.c, but that seems kind of stupid.
anyone have an idea? Is there a posix routine that may work?

steve


  • Follow-Ups:
    • Re: Changing the case of a filename?
      • From: SATO Seichi <email@hidden>
    • Re: Changing the case of a filename?
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Lost contents!
  • Next by Date: RE: [OT] default web browser
  • Previous by thread: Re: Fun with NSRunLoop <solved>
  • Next by thread: Re: Changing the case of a filename?
  • Index(es):
    • Date
    • Thread