| Standard ML Basis Library |
signature OS_FILE_SYS =
sig
type dirstream
eqtype file_id
datatype access_mode = A_READ | A_WRITE | A_EXEC
val openDir : string -> dirstream
val readDir : dirstream -> string option
val rewindDir : dirstream -> unit
val closeDir : dirstream -> unit
val chDir : string -> unit
val getDir : unit -> string
val mkDir : string -> unit
val rmDir : string -> unit
val isDir : string -> bool
val isLink : string -> bool
val readLink : string -> string
val fullPath : string -> string
val realPath : string -> string
val fileSize : string -> Position.int
val modTime : string -> Time.time
val setTime : string * Time.time option -> unit
val remove : string -> unit
val rename : {old : string, new : string} -> unit
val access : string * access_mode list -> bool
val tmpName : unit -> string
val fileId : string -> file_id
val hash : file_id -> word
val compare : file_id * file_id -> order
end
Type detail |
---|
type dirstream
eqtype file_id
Datatype detail |
---|
datatype access_mode = A_READ | A_WRITE | A_EXEC
DataConstructor detail |
---|
constructor A_READ : access_mode
constructor A_WRITE : access_mode
constructor A_EXEC : access_mode
Value detail |
---|
val openDir : string -> dirstream
val readDir : dirstream -> string option
val rewindDir : dirstream -> unit
val closeDir : dirstream -> unit
val isDir : string -> bool
val isLink : string -> bool
val readLink : string -> string
val fullPath : string -> string
val realPath : string -> string
val fileSize : string -> Position.int
val modTime : string -> Time.time
val setTime : string * Time.time option -> unit
val rename : {old : string, new : string} -> unit
val access : string * access_mode list -> bool
val fileId : string -> file_id
val compare : file_id * file_id -> order
| Standard ML Basis Library |
This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.
Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.
Permission is granted for internet users to make one paper copy for their
own personal use. Further hardcopy reproduction is strictly prohibited.
Permission to distribute the HTML document electronically on any medium
other than the internet must be requested from the copyright holders by
contacting the editors.
Printed versions of the SML Basis Manual are available from Cambridge
University Press.
To order, please visit
www.cup.org (North America) or
www.cup.cam.ac.uk (outside North America). |