Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
coreospackage
Commits
28ebd705
Commit
28ebd705
authored
7 years ago
by
Sandeep S. Shewalkar
Browse files
Options
Downloads
Patches
Plain Diff
changes inside Append function
os.O_CREATE added for append function
parent
6d34402b
Branches
Branches containing commit
1 merge request
!42
changes inside Append function
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
filehelper/fileHelper.go
+1
-1
filehelper/fileHelper.go
with
1 addition
and
1 deletion
filehelper/fileHelper.go
+
1
−
1
View file @
28ebd705
...
...
@@ -35,7 +35,7 @@ func WriteFile(filePath string, data []byte) error {
//AppendFile appends prvided data/text to file
func
AppendFile
(
filename
string
,
text
string
)
(
int
,
error
)
{
f
,
err
:=
os
.
OpenFile
(
filename
,
os
.
O_APPEND
|
os
.
O_WRONLY
,
0600
)
f
,
err
:=
os
.
OpenFile
(
filename
,
os
.
O_CREATE
|
os
.
O_APPEND
|
os
.
O_WRONLY
,
0600
)
if
err
!=
nil
{
return
0
,
err
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets