|
@@ -62,21 +62,21 @@ class File {
|
|
|
public static function read( path : String, binary : Bool = true ) : FileInput {
|
|
|
var mode = "rb";
|
|
|
var f:python.lib.io.RawIOBase = cast python.lib.Builtin.open(path, mode, -1);
|
|
|
- return new FileInput(f, binary);
|
|
|
+ return new FileInput(f);
|
|
|
}
|
|
|
|
|
|
public static function write( path : String, binary : Bool = true ) : FileOutput {
|
|
|
var mode = "wb";
|
|
|
var f:python.lib.io.RawIOBase = cast python.lib.Builtin.open(path, mode, -1);
|
|
|
|
|
|
- return new FileOutput(f, binary);
|
|
|
+ return new FileOutput(f);
|
|
|
}
|
|
|
|
|
|
public static function append( path : String, binary : Bool = true ) : FileOutput {
|
|
|
var mode = "ab";
|
|
|
var f:python.lib.io.RawIOBase = cast python.lib.Builtin.open(path, mode, -1);
|
|
|
|
|
|
- return new FileOutput(f, binary);
|
|
|
+ return new FileOutput(f);
|
|
|
}
|
|
|
|
|
|
public static function copy( srcPath : String, dstPath : String ) : Void
|