Jump to content
Server Maintenance This Week. ×

Renaming SC files


This topic is 2829 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Is there a good way to rename files? And did the behavior of SCMove() change recently.

A few months ago, I was testing using SCMove() to rename a file SCMove by using the same filepath for the old and new paths, but adding a filename parameter SCMove ( filepath ; filepath ; new.filename ). I thought I had it working ok. I let the project sit for a couple months and just came back to it and now it's not working.

I'm second guessing myself that I ever had it working in the first place. But it looks like SCMove() may have changed, now accepting key/value pairs rather than just a filename. I've tried it both the old way and with filename= and neither works.

My goal is to rename the file. Is there a better approach?

 

Related for my purposes...does SCMove() delete the old filepath's folders? Or are they still there in the filesystem?

 

Thanks!

Edited by David Jondreau
Link to comment
Share on other sites

This topic is 2829 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.