• Resolved fishmi

    (@fishmi)


    Hi Media File Renamer Team!

    I encounter an issue when moving a file outside a folder with the same name as the file itself, leads to an unexpected behavior and the files does not get moved.

    I am using your mfrh_move API function to move the files. To reproduce, please create the following upload structure in your media library:

    wp-content/
    – first-folder/
    – my-folder.zip/ (this is folder!)
    – my-folder.zip (this is the file with ID 1)

    Afterwards, try the following API call: mfrh_move(1, “first-folder/”);

    Can you please give it a try?

    Regards
    Martin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @fishmi,

    Sorry for asking, but how is this possible? ?? Are you using Windows?

    In the Unix world, everything is a file, so it’s not possible to have a “my-folder.zip” directory, and a “my-folder.zip” file next to it ?? Even though it might be overridable by using PHP with IIS, this is not recommended at all ??

    I can’t test it because I am only running MacOS an Linux systems.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Oh sorry, you are trying to move out a file from a directory which has the same name; but in that way, indeed, it’s not possible, and the moving would be rejected. You would except that it works?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘API to move files does not work’ is closed to new replies.