W3cubDocs

/Haxe Python

Os

package python.lib

@:pythonImport("os") Available on python

Static variables

static environ:Dict<String, String>

static read only pathsep:String

static read only sep:String

Static methods

static chdir (path:String):Void

static fchdir (fd:FileDescriptor):Void

static getcwd ():String

static getcwdb ():Bytes

@:value({ path : "." }) static listdir (path:String = "."):Array<String>

@:value({ exist_ok : false, mode : 511 }) static makedirs (path:String, mode:Int = 511, exist_ok:Bool = false):Void

@:value({ mode : 511 }) static mkdir (path:String, mode:Int = 511):Void

static putenv (name:String, value:String):Void

static remove (path:String):Void

static removedirs (path:String):Void

static rename (src:String, dest:String):Void

static renames (oldName:String, newName:String):Void

static rmdir (path:String):Void

static stat (path:String):Stat

@:value({ followlinks : false, onerror : null, topdown : true }) static walk (top:String, topdown:Bool = true, ?onerror:OSError ‑> Void, followlinks:Bool = false):Tuple3<String, Array<String>, Array<String>>

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/python/lib/Os.html