Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
bab1f80a
Commit
bab1f80a
authored
10 years ago
by
Maxime Graulich
Browse files
Options
Downloads
Patches
Plain Diff
iOS: do not backup models in iCloud
parent
0d2959b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/mobile/iOS/Onelab/Utils.mm
+3
-1
3 additions, 1 deletion
contrib/mobile/iOS/Onelab/Utils.mm
with
3 additions
and
1 deletion
contrib/mobile/iOS/Onelab/Utils.mm
+
3
−
1
View file @
bab1f80a
...
@@ -20,9 +20,11 @@
...
@@ -20,9 +20,11 @@
NSString
*
modelSrc
=
[[
resPath
stringByAppendingString
:
@"/"
]
stringByAppendingString
:
obj
];
NSString
*
modelSrc
=
[[
resPath
stringByAppendingString
:
@"/"
]
stringByAppendingString
:
obj
];
NSString
*
modelDst
=
[[
docPath
stringByAppendingString
:
@"/"
]
stringByAppendingString
:
obj
];
NSString
*
modelDst
=
[[
docPath
stringByAppendingString
:
@"/"
]
stringByAppendingString
:
obj
];
[[
NSFileManager
defaultManager
]
removeItemAtPath
:
modelDst
error
:
nil
];
[[
NSFileManager
defaultManager
]
removeItemAtPath
:
modelDst
error
:
nil
];
NSError
*
error
;
NSError
*
error
=
nil
;
if
(
!
[[
NSFileManager
defaultManager
]
copyItemAtPath
:
modelSrc
toPath
:
modelDst
error
:&
error
])
if
(
!
[[
NSFileManager
defaultManager
]
copyItemAtPath
:
modelSrc
toPath
:
modelDst
error
:&
error
])
NSLog
(
@"Error: %@"
,
error
);
NSLog
(
@"Error: %@"
,
error
);
else
if
(
!
[[
NSURL
fileURLWithPath
:
modelDst
]
setResourceValue
:
[
NSNumber
numberWithBool
:
YES
]
forKey
:
NSURLIsExcludedFromBackupKey
error
:
&
error
])
NSLog
(
@"Error %@"
,
error
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment