This is not normally necessary when used in
combination with the majority of Neko ??™ s libraries, but may prove useful for data logging and the like. To
use it, you simply pass it a string depicting a relative path, and it will return the full path equivalent if
possible:
var abs : String = neko.FileSystem.fullPath( ???../data??? );
Methods Description
exists( path : String ) : Bool Checks for the existence of a specified file or
directory
fullPath( rel : String ) : String Provides an absolute path from a path relative to
the application
isDirectory( path : String ) : Bool Returns true if the specified path is a directory;
otherwise false is returned
kind( path : String ) : neko.FileKind Returns an enum value based on whether the
passed path is a file or directory
readDirectory( path : String ) :
Array
Returns the items found in a directory
rename( path : String, new : String ) Renames a file or directory to the given new
name
stat( path : String ) : neko.FileStat Returns various data for a given path
303
Chapter 11: Performing Server-Side Trickery
exists()
The exists method is probably the method we personally use most among the filesystem arsenal.
Pages:
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595