Created
May 19, 2011 11:11
-
-
Save alexnask/980543 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"path":"io/File","globalImports":["lang/Format","lang/VarArgs","lang/Abstractions","lang/IO","lang/Memory","lang/String","lang/Iterators","lang/Character","lang/System","lang/BufferIterator","lang/Numbers","lang/types","lang/Buffer","lang/Exception","structs/ArrayList","io/FileReader","io/FileWriter","io/Reader","io/BufferWriter","io/BufferReader","io/native/FileWin32","io/native/FileUnix"],"namespacedImports":{},"uses":[],"entities":[["_isDirHardlink__quest",{"type":"function","tag":"_isDirHardlink__quest","extern":false,"unmangled":false,"token":[8568,14],"modifiers":["inline"],"genericTypes":[],"fullName":"io_File___isDirHardlink__quest","isThisRef":false,"doc":"","name":"_isDirHardlink__quest","version":null,"returnType":"Bool","arguments":[["dir","CString",null]]}],["File",{"type":"class","abstract":true,"tag":"File","members":[["init",{"type":"method","tag":"method(File, init)","extern":false,"unmangled":false,"token":[672,4],"modifiers":["final"],"genericTypes":[],"fullName":"io_File__File_init","isThisRef":false,"doc":"","name":"init","version":null,"returnType":null,"arguments":[]}],["new",{"type":"method","tag":"method(File, new)","extern":false,"unmangled":false,"token":[1341,3],"modifiers":["static"],"genericTypes":[],"fullName":"io_File__File_new","isThisRef":false,"doc":"\n Create a File object from the given path\n ","name":"new","version":null,"returnType":"File","arguments":[["path","String",null]]}],["new",{"type":"method","tag":"method(File, new~parentFile)","extern":false,"unmangled":false,"token":[1699,3],"modifiers":["static"],"genericTypes":[],"fullName":"io_File__File_new_parentFile","isThisRef":false,"doc":"\n Create a File object, relative to the given parent file\n ","name":"new~parentFile","version":null,"returnType":"File","arguments":[["parent","File",null],["path","String",null]]}],["new",{"type":"method","tag":"method(File, new~parentPath)","extern":false,"unmangled":false,"token":[2003,3],"modifiers":["static"],"genericTypes":[],"fullName":"io_File__File_new_parentPath","isThisRef":false,"doc":"\n Create a File object, relative to the given parent path\n ","name":"new~parentPath","version":null,"returnType":"File","arguments":[["parent","String",null],["path","String",null]]}],["dir__quest",{"type":"method","tag":"method(File, dir__quest)","extern":false,"unmangled":false,"token":[2183,3],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_dir__quest","isThisRef":false,"doc":"\n * @return true if it's a directory\n ","name":"dir__quest","version":null,"returnType":"Bool","arguments":[]}],["file__quest",{"type":"method","tag":"method(File, file__quest)","extern":false,"unmangled":false,"token":[2309,4],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_file__quest","isThisRef":false,"doc":"\n * @return true if it's a file (ie. not a directory nor a symbolic link)\n ","name":"file__quest","version":null,"returnType":"Bool","arguments":[]}],["link__quest",{"type":"method","tag":"method(File, link__quest)","extern":false,"unmangled":false,"token":[2410,4],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_link__quest","isThisRef":false,"doc":"\n * @return true if the file is a symbolic link\n ","name":"link__quest","version":null,"returnType":"Bool","arguments":[]}],["getSize",{"type":"method","tag":"method(File, getSize)","extern":false,"unmangled":false,"token":[2506,7],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_getSize","isThisRef":false,"doc":"\n * @return the size of the file, in bytes\n ","name":"getSize","version":null,"returnType":"LLong","arguments":[]}],["exists__quest",{"type":"method","tag":"method(File, exists__quest)","extern":false,"unmangled":false,"token":[2635,6],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_exists__quest","isThisRef":false,"doc":"\n * @return true if the file exists and can be\n * opened for reading\n ","name":"exists__quest","version":null,"returnType":"Bool","arguments":[]}],["ownerPerm",{"type":"method","tag":"method(File, ownerPerm)","extern":false,"unmangled":false,"token":[2871,9],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_ownerPerm","isThisRef":false,"doc":"\n * @return the permissions for the owner of this file\n ","name":"ownerPerm","version":null,"returnType":"Int","arguments":[]}],["groupPerm",{"type":"method","tag":"method(File, groupPerm)","extern":false,"unmangled":false,"token":[2982,9],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_groupPerm","isThisRef":false,"doc":"\n * @return the permissions for the group of this file\n ","name":"groupPerm","version":null,"returnType":"Int","arguments":[]}],["otherPerm",{"type":"method","tag":"method(File, otherPerm)","extern":false,"unmangled":false,"token":[3104,9],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_otherPerm","isThisRef":false,"doc":"\n * @return the permissions for the others (not owner, not group)\n ","name":"otherPerm","version":null,"returnType":"Int","arguments":[]}],["name",{"type":"method","tag":"method(File, name)","extern":false,"unmangled":false,"token":[3268,4],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_name","isThisRef":false,"doc":"\n * @return the last part of the path, e.g. for /etc/init.d/bluetooth\n * name() will return 'bluetooth'\n ","name":"name","version":null,"returnType":"String","arguments":[]}],["parent",{"type":"method","tag":"method(File, parent)","extern":false,"unmangled":false,"token":[3655,6],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_parent","isThisRef":false,"doc":"\n * @return the parent of this file, e.g. for /etc/init.d/bluetooth\n * it will return /etc/init.d/ (as a File), or null if it's the\n * root directory.\n ","name":"parent","version":null,"returnType":"File","arguments":[]}],["parentName",{"type":"method","tag":"method(File, parentName)","extern":false,"unmangled":false,"token":[4072,10],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_parentName","isThisRef":false,"doc":"\n * @return the parent of this file, e.g. for /etc/init.d/bluetooth\n * it will return /etc/init.d/ (as a File), or null if it's the\n * root directory.\n ","name":"parentName","version":null,"returnType":"String","arguments":[]}],["mkdir",{"type":"method","tag":"method(File, mkdir)","extern":false,"unmangled":false,"token":[4351,5],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_mkdir","isThisRef":false,"doc":"\n * create a directory at the path specified by this file,\n * with permissions 0c755 by default\n ","name":"mkdir","version":null,"returnType":"Int","arguments":[]}],["mkdir",{"type":"method","tag":"method(File, mkdir~withMode)","extern":false,"unmangled":false,"token":[4557,5],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_mkdir_withMode","isThisRef":false,"doc":"\n * create a directory at the path specified by this file\n *\n * :param mode: The permissions at the creation of the directory\n ","name":"mkdir~withMode","version":null,"returnType":"Int","arguments":[["mode","Int32",null]]}],["mkdirs",{"type":"method","tag":"method(File, mkdirs)","extern":false,"unmangled":false,"token":[4782,6],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_mkdirs","isThisRef":false,"doc":"\n * create a directory at the path specified by this file,\n * and all the parent directories if needed,\n * with permissions 0c755 by default\n ","name":"mkdirs","version":null,"returnType":null,"arguments":[]}],["mkdirs",{"type":"method","tag":"method(File, mkdirs~withMode)","extern":false,"unmangled":false,"token":[5032,6],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_mkdirs_withMode","isThisRef":false,"doc":"\n * create a directory at the path specified by this file,\n * and all the parent directories if needed\n *\n * :param mode: The permissions at the creation of the directory\n ","name":"mkdirs~withMode","version":null,"returnType":"Int","arguments":[["mode","Int32",null]]}],["lastAccessed",{"type":"method","tag":"method(File, lastAccessed)","extern":false,"unmangled":false,"token":[5231,12],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_lastAccessed","isThisRef":false,"doc":"\n * @return the time of last access\n ","name":"lastAccessed","version":null,"returnType":"Long","arguments":[]}],["lastModified",{"type":"method","tag":"method(File, lastModified)","extern":false,"unmangled":false,"token":[5333,12],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_lastModified","isThisRef":false,"doc":"\n * @return the time of last modification\n ","name":"lastModified","version":null,"returnType":"Long","arguments":[]}],["created",{"type":"method","tag":"method(File, created)","extern":false,"unmangled":false,"token":[5426,7],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_created","isThisRef":false,"doc":"\n * @return the time of creation\n ","name":"created","version":null,"returnType":"Long","arguments":[]}],["relative__quest",{"type":"method","tag":"method(File, relative__quest)","extern":false,"unmangled":false,"token":[5551,8],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_relative__quest","isThisRef":false,"doc":"\n * @return true if the function is relative to the current directory\n ","name":"relative__quest","version":null,"returnType":"Bool","arguments":[]}],["getPath",{"type":"method","tag":"method(File, getPath)","extern":false,"unmangled":false,"token":[5653,7],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_getPath","isThisRef":false,"doc":"\n * the path this file has been created with\n ","name":"getPath","version":null,"returnType":"String","arguments":[]}],["getAbsolutePath",{"type":"method","tag":"method(File, getAbsolutePath)","extern":false,"unmangled":false,"token":[5778,15],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_getAbsolutePath","isThisRef":false,"doc":"\n * The absolute path, e.g. \"my/dir\" => \"/current/directory/my/dir\"\n ","name":"getAbsolutePath","version":null,"returnType":"String","arguments":[]}],["getAbsoluteFile",{"type":"method","tag":"method(File, getAbsoluteFile)","extern":false,"unmangled":false,"token":[5925,15],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_getAbsoluteFile","isThisRef":false,"doc":"\n * A file corresponding to the absolute path\n *\n * :see: getAbsolutePath\n ","name":"getAbsoluteFile","version":null,"returnType":"File","arguments":[]}],["getChildrenNames",{"type":"method","tag":"method(File, getChildrenNames)","extern":false,"unmangled":false,"token":[6121,16],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_getChildrenNames","isThisRef":false,"doc":"\n * List the name of the children of this path\n * Works only on directories, obviously\n ","name":"getChildrenNames","version":null,"returnType":"ArrayList","arguments":[]}],["getChildren",{"type":"method","tag":"method(File, getChildren)","extern":false,"unmangled":false,"token":[6277,11],"modifiers":["abstract"],"genericTypes":[],"fullName":"io_File__File_getChildren","isThisRef":false,"doc":"\n * List the children of this path\n * Works only on directories, obviously\n ","name":"getChildren","version":null,"returnType":"ArrayList","arguments":[]}],["remove",{"type":"method","tag":"method(File, remove)","extern":false,"unmangled":false,"token":[6421,6],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_remove","isThisRef":false,"doc":"\n * Tries to remove the file. This only works for files, not directories.\n ","name":"remove","version":null,"returnType":"Int","arguments":[]}],["copyTo",{"type":"method","tag":"method(File, copyTo)","extern":false,"unmangled":false,"token":[6597,6],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_copyTo","isThisRef":false,"doc":"\n * Copies the content of this file to another\n *\n * :param dstFile: the file to copy to\n ","name":"copyTo","version":null,"returnType":null,"arguments":[["dstFile","File",null]]}],["read",{"type":"method","tag":"method(File, read)","extern":false,"unmangled":false,"token":[7043,4],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_read","isThisRef":false,"doc":"\n @return The content of this file, as a String\n ","name":"read","version":null,"returnType":"String","arguments":[]}],["write",{"type":"method","tag":"method(File, write~string)","extern":false,"unmangled":false,"token":[7304,5],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_write_string","isThisRef":false,"doc":"\n Write a string to this file.\n\n @param str The string to write\n ","name":"write~string","version":null,"returnType":null,"arguments":[["str","String",null]]}],["write",{"type":"method","tag":"method(File, write~reader)","extern":false,"unmangled":false,"token":[7530,5],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_write_reader","isThisRef":false,"doc":"\n Write from a reader to this file\n\n @param reader What to write in the file\n ","name":"write~reader","version":null,"returnType":null,"arguments":[["reader","Reader",null]]}],["walk",{"type":"method","tag":"method(File, walk)","extern":false,"unmangled":false,"token":[7953,4],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_walk","isThisRef":false,"doc":"\n Walk this directory and call `f` on all files it contains, recursively.\n\n If `f` returns false, stop walking.\n\n If we're not a directory, calls f(this) once and returns true.\n\n @return true if we finished walking normally, false if we\n got cancelled by `f` returning false.\n ","name":"walk","version":null,"returnType":"Bool","arguments":[["f","Func(arguments(File),return(Bool))",null]]}],["getChild",{"type":"method","tag":"method(File, getChild)","extern":false,"unmangled":false,"token":[8345,8],"modifiers":[],"genericTypes":[],"fullName":"io_File__File_getChild","isThisRef":false,"doc":"\n Get a child of this path\n\n @param name The name of the child, relatively to this path\n ","name":"getChild","version":null,"returnType":"File","arguments":[["name","String",null]]}],["getCwd",{"type":"method","tag":"method(File, getCwd)","extern":false,"unmangled":false,"token":[8504,6],"modifiers":["static"],"genericTypes":[],"fullName":"io_File__File_getCwd","isThisRef":false,"doc":"\n @return the current working directory\n ","name":"getCwd","version":null,"returnType":"String","arguments":[]}],["__getpath__",{"type":"method","tag":"method(File, __getpath__)","extern":false,"unmangled":false,"token":[739,4],"modifiers":[],"genericTypes":[],"fullName":"io_File__File___getpath__","isThisRef":false,"doc":"","name":"__getpath__","version":null,"returnType":"String","arguments":[]}],["__setpath__",{"type":"method","tag":"method(File, __setpath__)","extern":false,"unmangled":false,"token":[739,4],"modifiers":[],"genericTypes":[],"fullName":"io_File__File___setpath__","isThisRef":false,"doc":"","name":"__setpath__","version":null,"returnType":null,"arguments":[["path","String",null]]}],["__getchildren__",{"type":"method","tag":"method(File, __getchildren__)","extern":false,"unmangled":false,"token":[793,4294967295],"modifiers":[],"genericTypes":[],"fullName":"io_File__File___getchildren__","isThisRef":false,"doc":"","name":"__getchildren__","version":null,"returnType":"ArrayList","arguments":[]}],["__defaults__",{"type":"method","tag":"method(File, __defaults__)","extern":false,"unmangled":false,"token":[672,4],"modifiers":[],"genericTypes":[],"fullName":"io_File__File___defaults__","isThisRef":false,"doc":"","name":"__defaults__","version":null,"returnType":null,"arguments":[]}],["__load__",{"type":"method","tag":"method(File, __load__)","extern":false,"unmangled":false,"token":[672,4],"modifiers":["static"],"genericTypes":[],"fullName":"io_File__File___load__","isThisRef":false,"doc":"","name":"__load__","version":null,"returnType":null,"arguments":[]}],["path",{"type":"field","tag":"field(File, path)","value":null,"extern":false,"unmangled":false,"token":[739,4],"modifiers":[],"fullName":"path","propertyData":{"hasGetter":true,"hasSetter":true,"fullGetterName":"io_File__File___getpath__","fullSetterName":"io_File__File___setpath__"},"doc":"","name":"path","version":null,"varType":"String"}],["children",{"type":"field","tag":"field(File, children)","value":null,"extern":false,"unmangled":false,"token":[773,8],"modifiers":[],"fullName":"children","propertyData":{"hasGetter":true,"hasSetter":false,"fullGetterName":"io_File__File___getchildren__","fullSetterName":null},"doc":"","name":"children","version":null,"varType":"ArrayList"}],["separator",{"type":"field","tag":"field(FileClass, separator)","value":null,"extern":false,"unmangled":false,"token":[943,9],"modifiers":["static"],"fullName":"separator","propertyData":null,"doc":" Separator for path elements. Usually '/' on *nix and '\\\\' on Windows. ","name":"separator","version":null,"varType":"Char"}],["pathDelimiter",{"type":"field","tag":"field(FileClass, pathDelimiter)","value":null,"extern":false,"unmangled":false,"token":[1053,13],"modifiers":["static"],"fullName":"pathDelimiter","propertyData":null,"doc":" Delimiter for lists of paths. Usually ':' on *nix and ';' on Windows. ","name":"pathDelimiter","version":null,"varType":"Char"}],["MAX_PATH_LENGTH",{"type":"field","tag":"field(FileClass, MAX_PATH_LENGTH)","value":"16383","extern":false,"unmangled":false,"token":[1213,15],"modifiers":["static","const"],"fullName":"MAX_PATH_LENGTH","propertyData":null,"doc":"\n * Maximum path length used to retrieve the current working directory (cwd)\n * We use our own constant\n ","name":"MAX_PATH_LENGTH","version":null,"varType":"SSizeT"}]],"token":[672,4],"genericTypes":[],"fullName":"io_File__File","extends":"Object","doc":"\n Represents a file/directory path, allows to retrieve informations like\n last date of creation/access/modification, permissions, size,\n existence, content, type, children...\n\n You can also create directories, remove files, read their content,\n copy them, write to them.\n\n For input/output (I/O) beyond 'reading to a String' and\n 'writing a String', see the FileReader and FileWriter classes\n\n @author Pierre-Alexandre Croiset\n @author Friedrich Weber (fredreichbier)\n @author Amos Wenger (nddrylliog)\n ","name":"File","final":false,"version":null}],["__strLit132",{"type":"globalVariable","tag":"__strLit132","value":"\".\"","extern":false,"unmangled":false,"token":[3827,1],"modifiers":["static"],"fullName":"__strLit132","propertyData":null,"doc":"","name":"__strLit132","version":null,"varType":"String"}],["__strLit131",{"type":"globalVariable","tag":"__strLit131","value":"\".\"","extern":false,"unmangled":false,"token":[3769,1],"modifiers":["static"],"fullName":"__strLit131","propertyData":null,"doc":"","name":"__strLit131","version":null,"varType":"String"}],["__strLit130",{"type":"globalVariable","tag":"__strLit130","value":"\"rb\"","extern":false,"unmangled":false,"token":[2693,2],"modifiers":["static"],"fullName":"__strLit130","propertyData":null,"doc":"","name":"__strLit130","version":null,"varType":"String"}],["__strLit129",{"type":"globalVariable","tag":"__strLit129","value":"\"Unsupported platform!\\n\"","extern":false,"unmangled":false,"token":[1562,23],"modifiers":["static"],"fullName":"__strLit129","propertyData":null,"doc":"","name":"__strLit129","version":null,"varType":"String"}]]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment