This is happening where the plugin has the code for if(file_exists($new_path))
I think the developer may have to perform an action such as this:
if(file_exists($new)) {
unlink($new);
$ok = rename($old, $new);
} else { $ok = rename($old, $new); }
Or create a function like this:
function rename_win($oldfile,$newfile) {
if (!rename($oldfile,$newfile)) {
if (copy ($oldfile,$newfile)) {
unlink($oldfile);
return TRUE;
}
return FALSE;
}
return TRUE;
}
I referenced this: http://us2.php.net/rename
Developer, can you implement something like this so that we can overwrite a file? Even if we “permanently delete the file” it actually doesn’t delete it in the relocated directory, so this would be helpful.
These issues are fixed in the current version that I am working on. I’m changing how the paths are determined and stored in the database. Because of this, I need to do some extensive testing first. I hope to release it soon.
I have problems as mentioned above.
When will you release a new version?
The plugin has some great potential 🙂
I will try to look at this in the next several days. I want to get these issues fixed and more testing on WordPress 4.0 before releasing it.
I am sure not only me would greatly appreciate this 🙂
I am looking forward for fixes 🙂