What is a filesystem API?

A filesystem API is a set of SDK calls that read and write files in a sandbox. The calls work on files directly and do not run a shell command inside the sandbox.

Updated

Common calls

Most file APIs can write a file, read a file and check that a path exists. Many can also make a folder, delete, rename or move a file. Some SDKs list folders, upload and download files, or search by file name.

Some SDKs also watch a path and report changes in real time.

No shell needed

Some SDK docs say the calls manage files directly, without shell commands inside the sandbox. Your code passes a path and content. It does not build a shell command.

Large files

Some SDKs read and write large files as streams. The whole file then does not load into memory at once.

What to check

  • Which calls the SDK has. Check for list, upload, download and watch, not only read and write.
  • Whether a path must be absolute.
  • Whether files stay in place after a pause and resume.
  • Whether the Sandbox SDK for your language has every call you need.

Related terms

All glossary terms

Related