L
laredotornado
Hi,
I'm using Java 1.5. Are there any pre-built functions for making a
file name unique? And by "unique", I am downloading files over an FTP
connection and if the file exists in the local directory, I would want
to create another with a "-1", "-2", etc., added before the file
extension. For example, if I were downloading "abc.txt", and
"abc.txt" already existed in the current directory, I would want the
newly downloaded file to be "abc-1.txt".
Thanks for your feedback, - Dave
I'm using Java 1.5. Are there any pre-built functions for making a
file name unique? And by "unique", I am downloading files over an FTP
connection and if the file exists in the local directory, I would want
to create another with a "-1", "-2", etc., added before the file
extension. For example, if I were downloading "abc.txt", and
"abc.txt" already existed in the current directory, I would want the
newly downloaded file to be "abc-1.txt".
Thanks for your feedback, - Dave