1
12 34
Coming from OS X, I'm used to protection to overwriting files. I have
the need for such protection. Before I write it myself is there a
standard method for this? I'd like it work like OS X where if a file of
the same name exists, the file to be copied gets an index number. For
example, existingFile.txt already is in the dest directory, and a file
of same name being copied becomes existingFile1.txt.
I don't think even this newbie will find it difficult, but it seems with
all the File and FileUtil methods something like this woudd exist.
Thanks
the need for such protection. Before I write it myself is there a
standard method for this? I'd like it work like OS X where if a file of
the same name exists, the file to be copied gets an index number. For
example, existingFile.txt already is in the dest directory, and a file
of same name being copied becomes existingFile1.txt.
I don't think even this newbie will find it difficult, but it seems with
all the File and FileUtil methods something like this woudd exist.
Thanks