Click to See Complete Forum and Search --> : Problem with renaming program


sym
08-24-2001, 11:31 AM
I have written a small Java program that recursively parses a directory and :

1) removes spaces from names, and
2) makes all names lower case

I run this program on a test directory tree I have setup in the /tmp directory, and it works great. I attempt to run this on a real directory, and it says it is changing the names, but it doesn't.

Any ideas on why this happens? The renaming function is getting a true feedback, so it thinks it is succeeding. I can't figure out why it would work for one directoy, but not another.

I am running it as root, so I shouldn't have permisson problems. Also, I would think that it would fail if it didn't have permission.

jemfinch
08-25-2001, 02:54 AM
My wild guess is that without the source code to look at, even the best of the Java gurus here won't be able to figure out your problem.

Jeremy