Prev | Current Page 584 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

With
it, you can determine if a given path, whether absolute or relative, actually exists. This is necessary if you
want to directly access a file or directory, without causing an exception if it isn ??™ t where you expected:
if (!neko.FileSystem.exists( ???../images??? ))
neko.FileSystem.createDirectory( ???../images??? );
Directory and File Management
Directory management in Neko is not exactly overflowing with functionality, but it does provide the
basic necessary methods for your general requirements, while file management covers several classes as
you ??™ ll see a little later. At present, there aren ??™ t any methods provided for chmod functionality, without
resorting to accessing system commands outside of the Neko framework. Also, a method for moving
files and directories is also missing. With luck, though, these methods will be added in a later release of
the haXe framework.
createDirectory(), deleteDirectory(), and deleteFile()
Creating a directory is easy, because a directory either is or it isn ??™ t.


Pages:
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596