Emojicode Documentation 0.8
Guides Language Reference Package Index

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.