Error 105 on FolderItem.MoveFileTo

  1. 5 months ago

    Charles W

    Nov 13 Pre-Release Testers Virginia

    I'm moving a bunch of files using FolderItem.MoveFileTo. The files are all smallish (700 KB) JPEGs.

    On one of them, I get an error 105, which means "You used an Invalid name"

    Except the name WASN'T invalid, it was "CHW_IMG_0245.jpg"
    AND the file WAS moved. Actually, it was copied; the original file still exists.

    This is happening to a couple of files out of 100 or so. There's no pattern that I can discern.

    Any suggestions about what's going on?

    Xojo 2017r2.1, macOS 10.12.6


  2. Tim P

    Nov 13 Pre-Release Testers, XDC Speakers

    You can get an invalid name error if any part of the path happens to be invalid, perhaps it's not the actual filename but somewhere else in the path?

  3. Charles W

    Nov 13 Pre-Release Testers Virginia

    No, the paths are all normal.

    I got around the problem by using a Shell mv command instead.

or Sign Up to reply!