Menu

Move files query

boardtc
2016-08-25
2016-08-27
  • boardtc

    boardtc - 2016-08-25

    My use case is wanting to move say .mp4 from subolders into another directory. I select the source folder and on the left pane mark the directories I am interested in - it might be 8 out of 50.

    I then set the filenames filter to *.mp4.

    I go file move files and select the target folder to be an empty directory (a different firectiry which also happens to show in the left side pane at the same level as the ones selected. I click ok and get the message "Cannot move folder into itself". How can I do my use case or is there a bug?

    Many thanks!

     
  • Simon Booth

    Simon Booth - 2016-08-25

    Hi boardtc, your use case isn't currently supported, but could be... since the target directory is a child of the source root the tool figures you could be trying to move something into one of its own subdirectories (which would go very badly) but doesn't check whether you actually are. There's a comment in the source code:

                // Check whether destination is a subdirectory of source (or indeed, source itself)
                // There are occasions when it might be quite useful to permit it, e.g. moving a selection of subfolders
                // into a different subfolder, but would have to check whether destination was due to be moved... which is
                // probably not that difficult really (worst case would be to scan the whole tree)
    

    As luck would have it I've just dusted off the SmartCopyTool source code and started trying to remember how C#, .NET and WinForms work again to add a couple of features I have found myself needing, so I can maybe do something about your use case too. I'm going on vacation in a few days, so... it'll either be done in a few days or, somewhat later :)

     
  • Simon Booth

    Simon Booth - 2016-08-27

    OK, this is now supported in the latest version! If the destination folder is in the same directory structure as the source you will get a warning, but the move should work fine ... it even handles trying to move a folder into itself surprisingly well!

     

Log in to post a comment.

MongoDB Logo MongoDB