Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
43d23c16
Commit
43d23c16
authored
Jun 16, 2016
by
alexey.musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mobile] убрал дубликат
parent
0ed6c1f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
63 deletions
+0
-63
DesktopEditor/common/NSFileManager+Utils.h
DesktopEditor/common/NSFileManager+Utils.h
+0
-14
DesktopEditor/common/NSFileManager+Utils.m
DesktopEditor/common/NSFileManager+Utils.m
+0
-49
No files found.
DesktopEditor/common/NSFileManager+Utils.h
deleted
100644 → 0
View file @
0ed6c1f4
//
// NSFileManager+Utils.h
// Utils
//
// Created by alexey.musinov on 21.09.15.
// Copyright © 2015 Ascensio System SIA. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
NSFileManager
(
Utils
)
-
(
BOOL
)
copyFolderAtPath
:(
NSString
*
)
sourceFolder
toDestinationFolderAtPath
:(
NSString
*
)
destinationFolder
;
-
(
NSString
*
)
createTemporaryDirectory
;
@end
DesktopEditor/common/NSFileManager+Utils.m
deleted
100644 → 0
View file @
0ed6c1f4
//
// NSFileManager+Utils.m
// Utils
//
// Created by alexey.musinov on 21.09.15.
// Copyright © 2015 Ascensio System SIA. All rights reserved.
//
#import "NSFileManager+Utils.h"
@implementation
NSFileManager
(
Utils
)
-
(
BOOL
)
copyFolderAtPath
:(
NSString
*
)
sourceFolder
toDestinationFolderAtPath
:(
NSString
*
)
destinationFolder
{
destinationFolder
=
[
destinationFolder
stringByAppendingPathComponent
:[
sourceFolder
lastPathComponent
]];
NSError
*
error
=
nil
;
if
([
self
fileExistsAtPath
:
destinationFolder
])
{
if
(
!
[
self
removeItemAtPath
:
destinationFolder
error
:
&
error
])
{
NSLog
(
@"Could not remove old files. Error:%@"
,
error
);
return
NO
;
}
}
error
=
nil
;
if
(
!
([
self
copyItemAtPath
:
sourceFolder
toPath
:
destinationFolder
error
:&
error
]))
{
NSLog
(
@"Could not copy report at path %@ to path %@. error %@"
,
sourceFolder
,
destinationFolder
,
error
);
return
NO
;
}
return
YES
;
}
-
(
NSString
*
)
createTemporaryDirectory
{
NSError
*
error
=
nil
;
NSString
*
path
=
[
NSString
stringWithFormat
:
@"%@%@"
,
NSTemporaryDirectory
(),
[
NSUUID
UUID
].
UUIDString
];
if
(
!
[[
NSFileManager
defaultManager
]
createDirectoryAtPath
:
path
withIntermediateDirectories
:
YES
attributes
:
nil
error
:&
error
])
{
NSLog
(
@"Could not creat temp path %@. error %@"
,
path
,
error
);
return
@""
;
}
return
path
;
}
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment