cloudPhoneExtraFileListModel.m 818 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // cloudPhoneExtraFileListModel.m
  3. // 隐私保护
  4. //
  5. // Created by xd h on 2024/1/17.
  6. //
  7. #import "cloudPhoneExtraFileListModel.h"
  8. @implementation cloudPhoneExtraFileModel
  9. - (void)setExtraPath:(NSString *)extraPath
  10. {
  11. _extraPath = extraPath;
  12. NSArray *arr = [extraPath componentsSeparatedByString:@"/"];
  13. if(arr.count > 2){
  14. NSString *name = arr.lastObject;
  15. if(name.length == 0){
  16. name = arr[arr.count -2];
  17. }
  18. if([name containsString:@"sdcard"]){
  19. _name = NSLocalizedString(@"disk_phone_default_tip",nil);
  20. }
  21. else{
  22. _name = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"disk_Extra_default_tip",nil),name];
  23. }
  24. }
  25. }
  26. @end
  27. @implementation cloudPhoneExtraFileListModel
  28. @end