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
c4492f2c
Commit
c4492f2c
authored
Jan 19, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #33796
parent
41da15d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
DesktopEditor/common/Directory.h
DesktopEditor/common/Directory.h
+2
-14
No files found.
DesktopEditor/common/Directory.h
View file @
c4492f2c
...
...
@@ -341,30 +341,18 @@ namespace NSDirectory
#if defined(_WIN32) || defined (_WIN64)
return
FALSE
!=
::
CreateDirectoryW
(
strDirectory
.
c_str
(),
NULL
);
#el
if __linux__
#el
se
BYTE
*
pUtf8
=
NULL
;
LONG
lLen
=
0
;
NSFile
::
CUtf8Converter
::
GetUtf8StringFromUnicode
(
strDirectory
.
c_str
(),
strDirectory
.
length
(),
pUtf8
,
lLen
,
false
);
struct
stat
st
;
int
nRes
=
0
;
if
(
stat
((
char
*
)
pUtf8
,
&
st
)
==
-
1
)
{
nRes
=
mkdir
((
char
*
)
pUtf8
,
S_IRWXU
|
S_IRWXG
|
S_IR
WXO
);
nRes
=
mkdir
((
char
*
)
pUtf8
,
S_IRWXU
|
S_IRWXG
|
S_IR
OTH
|
S_IXOTH
);
}
delete
[]
pUtf8
;
return
0
==
nRes
;
#elif MAC
BYTE
*
pUtf8
=
NULL
;
LONG
lLen
=
0
;
NSFile
::
CUtf8Converter
::
GetUtf8StringFromUnicode
(
strDirectory
.
c_str
(),
strDirectory
.
length
(),
pUtf8
,
lLen
,
false
);
struct
stat
st
;
int
nRes
=
0
;
if
(
stat
((
char
*
)
pUtf8
,
&
st
)
==
-
1
)
{
nRes
=
mkdir
((
char
*
)
pUtf8
,
S_IRWXU
|
S_IRWXG
|
S_IRWXO
);
}
delete
[]
pUtf8
;
return
0
==
nRes
;
#endif
return
false
;
}
static
bool
CreateDirectories
(
const
std
::
wstring
&
strDirectory
)
{
...
...
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