exfile v0.1.5 Exfile.LocalFile

Represents a file either on the local filesystem or in memory.

Summary

Functions

Copies the LocalFile to a new file-based LocalFile. Once the calling pid dies, the file will be automatically removed from the filesystem (see Exfile.Tempfile for more details)

Opens a LocalFile into an IO pid. If the LocalFile is already IO-based, the IO will be rewound to the beginning of the file

Functions

copy_to_tempfile(local_file)

Copies the LocalFile to a new file-based LocalFile. Once the calling pid dies, the file will be automatically removed from the filesystem (see Exfile.Tempfile for more details).

open(local_file)

Opens a LocalFile into an IO pid. If the LocalFile is already IO-based, the IO will be rewound to the beginning of the file.

put_meta(file, key, value)