• Resolved renkessler

    (@renkessler)


    I moved files from one folder to another. The folder now shows “No files were found” but upon attempted deletion of the folder, I received the message “The folder is not empty and could not be deleted.”

    I FTP’d to the original folder and the files are there, as well as in the folder I moved them to. Yes, I am sure I did a move and not a copy.

    What is the best way to correct this problem?

    • This topic was modified 5 years ago by renkessler.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Peter Smits

    (@psmits1567)

    Please check if you do not have a subfolder within the one you moved the images from.
    If that is not the case, check which folder is indicated if you select an image from within Media. If that is the new folder you can delete the images in the original folder with FTP.
    Then from the original folder perform a sync.
    After that you should be able to remove the folder from within MLF
    Which version of MLF are you using ?

    Plugin Author AlanP57

    (@alanp57)

    Be sure your Media Library Folders is in set to move files. The move button can change from move to copy. Be certain that it is on ‘Move’.

    Also be sure that you have updated to the latest version of the plugin.

    If you move files and the plugin tells you that they have been moved, then could check for error messages when the plugin attempts to delete the files. You can turn on WordPress debugging by editing the site’s wp-config.php file and change

    define('WP_DEBUG', false);

    to

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors', 0);

    (Be sure to change this back when you are done.)

    This will allow different kinds of messages, some will not be related to Media Library Folders, to be written to a debug.log file in the wp-content folder. Now try deleting a file. Then check the debug.log file. And you can send your debug.log file to me at [email protected].

    Thread Starter renkessler

    (@renkessler)

    Peter Smits, that did the trick. Thanks.

    Peter Smits

    (@psmits1567)

    Good to see your problem is resolved!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Folder deletion problem’ is closed to new replies.