AMSMB2 icon indicating copy to clipboard operation
AMSMB2 copied to clipboard

Failed to move item

Open DemianSteelstone opened this issue 4 years ago • 3 comments

I can’t move the object, maybe I missed something? Here is my code sample:

[self.client connectShareWithName:"shareName" completionHandler:^(NSError * _Nullable error) {
        if (!error) {
            [self.client moveItemAtPath:"testFolder1/testItem.txt"
                                     toPath:"testFolder2/testItem.txt"
                          completionHandler:^(NSError * _Nullable error) {
                if (error) {
                    [weakSelf alertError:error];
                } else {
                    [weakSelf finish];
                }
            }];
        } else {
            [weakSelf alertError:error];
        }
    }];

As a result, I get an error Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error" UserInfo={NSLocalizedFailureReason=Error code 5: }

DemianSteelstone avatar Apr 30 '20 07:04 DemianSteelstone

Ok, this is looks like https://github.com/sahlberg/libsmb2/issues/52 When I replace '/' with '\\' in paths it starts to work

DemianSteelstone avatar May 07 '20 10:05 DemianSteelstone

That's weird. It supposed to be fixed. I will add sanitizer again until the new fix in libsmb2

amosavian avatar May 12 '20 06:05 amosavian

I have a similar problem with a Windows share. I can list all the items in a directory; but I can't fetch the data from any file.

geofstro avatar Jul 07 '22 10:07 geofstro