Package avail.interpreter.primitive.files

Types

Link copied to clipboard
object P_CreateDirectory : Primitive

Primitive: Create a directory with the indicated name and permissions. Answer a new fiber which, if creation is successful, will be started to run the success function. If the creation fails, then the fiber will be started to apply the failure function to the error code. The fiber runs at the specified priority.

Link copied to clipboard
object P_CurrentWorkingDirectory : Primitive

Primitive: Answer the real path of the current working directory.

Link copied to clipboard
object P_FileAbsolutePath : Primitive

Primitive: Answer the absolute path that corresponds to the specified path.

Link copied to clipboard
object P_FileCanExecute : Primitive

Primitive: Is the specified path executable?

Link copied to clipboard
object P_FileCanRead : Primitive

Primitive: Is the specified path readable?

Link copied to clipboard
object P_FileCanWrite : Primitive

Primitive: Is the specified path writable?

Link copied to clipboard
object P_FileClose : Primitive

Primitive: Close the file associated with the specified handle. Forget the association between the handle and the file.

Link copied to clipboard
object P_FileCopy : Primitive

Primitive: Recursively copy the source path to the destination path.

Link copied to clipboard
object P_FileExists : Primitive

Primitive: Does a file exist at the specified path? If the second argument is false, then no symbolic links will be traversed.

Link copied to clipboard
object P_FileGetAlignment : Primitive

Primitive: Determine the transfer alignment of the underlying file. This might not agree with the buffer size used in higher level abstractions, but the VM manages buffers for the file along this alignment.

Link copied to clipboard
object P_FileGetGroup : Primitive

Primitive: Answer the group that owns the file denoted by the specified path.

Link copied to clipboard
object P_FileGetOwner : Primitive

Primitive: Answer the user that owns the file denoted by the specified path.

Link copied to clipboard
object P_FileGetPermissions : Primitive

Primitive: Answer the ordinals (into IOSystem.posixPermissions) of the POSIX file permissions that describe the access rights granted by the file named by specified path.

Link copied to clipboard
object P_FileIsAbsolute : Primitive

Primitive: Determine whether the given filename is an absolute path.

Link copied to clipboard
object P_FileMetadata : Primitive

Primitive: Answer the metadata for the file indicated by the specified path.

Link copied to clipboard
object P_FileMove : Primitive

Primitive: Move the source path to the destination path. Use the supplied boolean to decide whether to permit the destination to be overwritten.

Link copied to clipboard
object P_FileOpen : Primitive

Primitive: Open an file. Answer a handle that uniquely identifies the file.

Link copied to clipboard
object P_FilePathConcatenation : Primitive

Primitive: Concatenate the elements of the specified tuple to form a platform-specific path.

Link copied to clipboard
object P_FilePathSplit : Primitive

Primitive: Split the specified path into its components.

Link copied to clipboard
object P_FileRead : Primitive

Primitive: Read the requested number of bytes from the file channel associated with the specified handle, starting at the requested one-based position. Produce them as a tuple of bytes. If fewer bytes are available, then simply produce a shorter tuple; an empty tuple unambiguously indicates that the end of the file has been reached. If the request amount is infinite or very large, fewer bytes may be returned, at the discretion of the Avail VM.

Link copied to clipboard
object P_FileRealPath : Primitive

Primitive: Answer the real path that corresponds to the specified path.

Link copied to clipboard
object P_FileRefresh : Primitive

Primitive: Force all system buffers associated with the readablefile channel associated with the handle to be discarded from the cache.

Link copied to clipboard
object P_FileRename : Primitive

Primitive: Rename the source path to the destination path. Try not to overwrite an existing destination. This operation is only likely to work for two paths provided by the same file store.

Link copied to clipboard
object P_FilesAreSame : Primitive

Primitive: Do the specified paths denote the same file?

Link copied to clipboard
object P_FileSetGroup : Primitive

Primitive:Set the group owner of the file denoted by the specified path to the group denoted by the specified name.

Link copied to clipboard
object P_FileSetOwner : Primitive

Primitive:Set the owner of the file denoted by the specified path to the user denoted by the specified name.

Link copied to clipboard
object P_FileSetPermissions : Primitive

Primitive: Set the access rights for the file specified by the given path.

Link copied to clipboard
object P_FileSize : Primitive

Primitive: Answer the size of the file associated with the specified handle. Supports 64-bit file sizes.

Link copied to clipboard
object P_FileSync : Primitive

Primitive: Force all system buffers associated with the writablefile channel associated with the handle to synchronize with the underlying device.

Link copied to clipboard
object P_FileTruncate : Primitive

Primitive: If the specified size is less than the size of the indicated writablefile channel associated with the handle, then reduce its size as indicated, discarding any data beyond the new file size.

Link copied to clipboard
object P_FileUnlink : Primitive

Primitive: Unlink the specified path from the file system.

Link copied to clipboard
object P_FileWrite : Primitive

Primitive: Write the specified tuple to the file associated with the handle. Writing begins at the specified one-based position of the file.