Paths
The XBee Smart Modem stores all of its files in the top-level directory /flash. On startup, the ATFS commands and MicroPython each use that as their current working directory. When specifying the path to a file or directory, it is interpreted as follows:
- Paths starting with a forward slash are "absolute" and must start with /flash to be valid.
- All other paths are relative to the current working directory.
- The directory .. refers to the parent directory, so an operation on ../filename.txt that takes place in the directory /flash/test accesses the file /flash/filename.txt.
- The directory . refers to the current directory, so the command ATFS ls . lists files in the current directory.
- Names are case-insensitive, so FILE.TXT, file.txt and FiLe.TxT all refer to the same file.
- File and directory names are limited to 64 characters, and can only contain letters, numbers, periods, dashes and underscores. A period at the end of the name is ignored.
- The full, absolute path to a file or directory is limited to 255 characters.