Emojicode Documentation 1.0 beta 2

Value Type πŸ“‘

The πŸ“‘ class has many class methods which allow you to work with the file system.

See the πŸ“„ class for reading and writing.

Type Methods

πŸ“

πŸ– πŸ‡β—οΈ πŸ“  path πŸ”‘ Β πŸš§πŸš§πŸ”Έβ†•

This method creates a directory at the given path. If the directory already exists an error is returned.

πŸ”«

πŸ– πŸ‡β—οΈ πŸ”«  path πŸ”‘ Β πŸš§πŸš§πŸ”Έβ†•

This method deletes the file at the given path.

Caution

This method may not be used to delete directories.

πŸ”₯

πŸ– πŸ‡β—οΈ πŸ”₯  path πŸ”‘ Β πŸš§πŸš§πŸ”Έβ†•

This method deletes an empty directory at the given path. If you need to delete a whole directory hierarchy use πŸ’£.

πŸ’£

πŸ– πŸ‡β—οΈ πŸ’£  path πŸ”‘ Β πŸš§πŸš§πŸ”Έβ†•

This method deletes an directory with its content. The method recursively descends the directory hierarchy and deletes every file or directory it finds. Once finished, it deletes the directory itself.

πŸ”—

πŸ– πŸ‡β—οΈ πŸ”—  originalFile πŸ”‘  destination πŸ”‘ Β πŸš§πŸš§πŸ”Έβ†•

This method creates a symbolic link to another.

πŸ“ƒ

πŸ– πŸ‡β—οΈ πŸ“ƒ  path πŸ”‘ ➑️ πŸ‘Œ

Determines whether a file exists at the given path.

πŸ“œ

πŸ– πŸ‡β—οΈ πŸ“œ  path πŸ”‘ ➑️ πŸ‘Œ

Determines whether a file exists and the given path and if it is readable.

πŸ“

πŸ– πŸ‡β—οΈ πŸ“  path πŸ”‘ ➑️ πŸ‘Œ

Determines whether a file exists and the given path and if it is writeable.

πŸ‘Ÿ

πŸ– πŸ‡β—οΈ πŸ‘Ÿ  path πŸ”‘ ➑️ πŸ‘Œ

Determines whether a file exists and the given path and if it is executable.

πŸ“

πŸ– πŸ‡β—οΈ πŸ“  path πŸ”‘ ➑️ πŸ”’Β πŸš§πŸš§πŸ”Έβ†•

Determines the size of a file at a given path. If the file cannot be found or any other error occurs the method returns -1.

β›“

πŸ– πŸ‡β—οΈ β›“  path πŸ”‘ ➑️ πŸ”‘Β πŸš§πŸš§πŸ”Έβ†•

Returns an absolute pathname derived from path that resolves to the same directory entry, whose resolution does not involve ., .., or symbolic links. On failure an error is returned.