Skip navigation.
 
mlRe: How to rename a filename in uppercase
FROM : Mike Abdullah
DATE : Sun Jan 20 18:57:35 2008

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?
>
>
> this code doesn't work because cocoa seems to be case-sensitive and
> this method is useless for my pourpose. So, i need a method like the
> unix mv, in fact if i use the command mv foo.txt FOO.txt , everything
> is allright.
> Someone have a smart idea to do this? Or i need to use two renaming?
> Like this (a very bad idea):
> [defaultManager movePath:@"foo.txt" toPath:@"temp.txt" handler:nil];
> [defaultManager movePath:@"temp.txt" toPath:@"FOO.txt" handler:nil];


Well does this actually work for you if you try it?

Related mailsAuthorDate
mlHow to rename a filename in uppercase Simone Tessaro Jan 20, 18:36
mlRe: How to rename a filename in uppercase Mike Abdullah Jan 20, 18:57
mlRe: How to rename a filename in uppercase John Stiles Jan 20, 20:15
mlRe: How to rename a filename in uppercase Simone Tessaro Jan 20, 20:21
mlRe: How to rename a filename in uppercase Simone Tessaro Jan 20, 20:27
mlRe: How to rename a filename in uppercase Adam R. Maxwell Jan 20, 20:28
mlRe: How to rename a filename in uppercase John Stiles Jan 20, 21:54
mlRe: How to rename a filename in uppercase Gerd Knops Jan 21, 00:37
mlRe: How to rename a filename in uppercase Chris Suter Jan 21, 00:39
mlRe: How to rename a filename in uppercase Rosyna Jan 21, 01:09
mlRe: How to rename a filename in uppercase Simone Tessaro Jan 21, 02:03
mlRe: How to rename a filename in uppercase Rosyna Jan 21, 02:45
mlRe: How to rename a filename in uppercase Simone Tessaro Jan 21, 10:42