|
@@ -1557,10 +1557,11 @@ PKPushRegistry *pushRegistry;
|
|
[tbc setSelectedIndex: k_tabBarApplicationIndexFile];
|
|
[tbc setSelectedIndex: k_tabBarApplicationIndexFile];
|
|
}
|
|
}
|
|
|
|
|
|
- // GoTo home
|
|
|
|
[CATransaction begin];
|
|
[CATransaction begin];
|
|
[CATransaction setCompletionBlock:^{
|
|
[CATransaction setCompletionBlock:^{
|
|
|
|
|
|
|
|
+ NSString *fileNamePath = [NSString stringWithFormat:@"%@%@/%@", account.url, k_webDAV, path];
|
|
|
|
+
|
|
if ([path containsString:@"/"]) {
|
|
if ([path containsString:@"/"]) {
|
|
|
|
|
|
// Push
|
|
// Push
|
|
@@ -1568,14 +1569,14 @@ PKPushRegistry *pushRegistry;
|
|
NSString *serverUrl = [CCUtility deletingLastPathComponentFromServerUrl:[NSString stringWithFormat:@"%@%@/%@", account.url, k_webDAV, [path stringByDeletingLastPathComponent]]];
|
|
NSString *serverUrl = [CCUtility deletingLastPathComponentFromServerUrl:[NSString stringWithFormat:@"%@%@/%@", account.url, k_webDAV, [path stringByDeletingLastPathComponent]]];
|
|
|
|
|
|
tableMetadata *metadata = [CCUtility createMetadataWithAccount:account.account date:[NSDate date] directory:NO fileID:[[NSUUID UUID] UUIDString] serverUrl:serverUrl fileName:directoryName etag:@"" size:0 status:k_metadataStatusNormal url:@""];
|
|
tableMetadata *metadata = [CCUtility createMetadataWithAccount:account.account date:[NSDate date] directory:NO fileID:[[NSUUID UUID] UUIDString] serverUrl:serverUrl fileName:directoryName etag:@"" size:0 status:k_metadataStatusNormal url:@""];
|
|
- [self.activeMain performSegueDirectoryWithControlPasscode:true metadata:metadata scrollToFileNamePath:path];
|
|
|
|
|
|
+ [self.activeMain performSegueDirectoryWithControlPasscode:true metadata:metadata scrollToFileNamePath:fileNamePath];
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
// Reload folder
|
|
// Reload folder
|
|
NSString *serverUrl = [NSString stringWithFormat:@"%@%@", account.url, k_webDAV];
|
|
NSString *serverUrl = [NSString stringWithFormat:@"%@%@", account.url, k_webDAV];
|
|
|
|
|
|
- self.activeMain.scrollToFileNamePath = path;
|
|
|
|
|
|
+ self.activeMain.scrollToFileNamePath = fileNamePath;
|
|
[self.activeMain readFolder:serverUrl];
|
|
[self.activeMain readFolder:serverUrl];
|
|
}
|
|
}
|
|
|
|
|