David Jondreau Posted July 27, 2016 Posted July 27, 2016 (edited) 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 July 27, 2016 by David Jondreau
Caleb360Works Posted July 27, 2016 Posted July 27, 2016 The SuperContainer functions have no changed for a long time. You can view plugin documentation here: http://static.360works.com/plugins/SuperContainer/plugin-documentation.html In the case of changing the file name, I think you're looking for "filename=New Filename.txt" as your third parameter.
Recommended Posts
This topic is 3131 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 accountSign in
Already have an account? Sign in here.
Sign In Now