Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Transforming File Name Characters

by Kenosis (Priest)
on Mar 11, 2013 at 19:26 UTC ( #1022854=note: print w/ replies, xml ) Need Help??


in reply to Transforming File Name Characters

What happens if, upon getting ready to rename a file or folder, the new name already exists? For example:

Old New --- --- file@{%.txt file___.txt file%{@.txt file___.txt


Comment on Re: Transforming File Name Characters
Download Code
Replies are listed 'Best First'.
Re^2: Transforming File Name Characters
by rfleisch (Initiate) on Mar 12, 2013 at 12:13 UTC
    Thanks I had NOT thought of that. I'm sure that the second rename will just fail and leave the file name unchanged. I'll display a message to look for it. Thank You For this "got-cha" :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022854]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (22)
As of 2015-07-28 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (255 votes), past polls