|
@@ -8,7 +8,27 @@
|
|
|
#import "cloudPhoneExtraFileListModel.h"
|
|
#import "cloudPhoneExtraFileListModel.h"
|
|
|
|
|
|
|
|
@implementation cloudPhoneExtraFileModel
|
|
@implementation cloudPhoneExtraFileModel
|
|
|
-
|
|
|
|
|
|
|
+- (void)setExtraPath:(NSString *)extraPath
|
|
|
|
|
+{
|
|
|
|
|
+ _extraPath = extraPath;
|
|
|
|
|
+
|
|
|
|
|
+ NSArray *arr = [extraPath componentsSeparatedByString:@"/"];
|
|
|
|
|
+ if(arr.count > 2){
|
|
|
|
|
+ NSString *name = arr.lastObject;
|
|
|
|
|
+ if(name.length == 0){
|
|
|
|
|
+ name = arr[arr.count -2];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if([name containsString:@"sdcard"]){
|
|
|
|
|
+ _name = NSLocalizedString(@"disk_phone_default_tip",nil);
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ _name = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"disk_Extra_default_tip",nil),name];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
@end
|
|
@end
|
|
|
|
|
|
|
|
@implementation cloudPhoneExtraFileListModel
|
|
@implementation cloudPhoneExtraFileListModel
|