projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
31c680e
)
File.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Oct 2010 07:32:54 +0000
(15:32 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Oct 2010 07:32:54 +0000
(15:32 +0800)
File.js
patch
|
blob
|
history
diff --git
a/File.js
b/File.js
index
2a7ab50
..
a741c15
100644
(file)
--- a/
File.js
+++ b/
File.js
@@
-108,9
+108,13
@@
var File = {
*/
write : function (path, string) {
var f = Gio.file_new_for_path(String(path));
*/
write : function (path, string) {
var f = Gio.file_new_for_path(String(path));
- var data_out = new Gio.DataOutputStream({base_stream:f.replace(null, false, Gio.FileCreateFlags.NONE, null)});
+ var data_out = new Gio.DataOutputStream({
+ //base_stream: f.replace(null, false, Gio.FileCreateFlags.NONE, null)
+ base_stream: f.replace_async(null, false, Gio.FileCreateFlags.NONE, 0, null)
+ });
data_out.put_string(string, null);
data_out.close(null);
data_out.put_string(string, null);
data_out.close(null);
+
},
/**
* append
},
/**
* append