OASISFileUtilFile operations
TODO: merge with OASISFileSystem.
val find_file :
?case_sensitive:bool ->
OASISTypes.host_filename list list ->
string list ->
OASISTypes.host_filenamefind_file paths exts Find a file among all provided paths, trying various extensiosn exts. Return the first combination of paths and exts.
val which :
ctxt:OASISContext.t ->
OASISTypes.host_filename ->
OASISTypes.host_filenameFind real filename of an executable.
val cp :
ctxt:OASISContext.t ->
?recurse:bool ->
OASISTypes.host_filename ->
OASISTypes.host_filename ->
unitCopy a file.
val mkdir : ctxt:OASISContext.t -> OASISTypes.host_filename -> unitCreate a directory.
val mkdir_parent :
ctxt:OASISContext.t ->
(OASISTypes.host_filename -> 'a) ->
OASISTypes.host_filename ->
unitmkdir_parent f tgt Create a directory and its parent, call f with directory name created, in order.
val rmdir : ctxt:OASISContext.t -> OASISTypes.host_filename -> unitRemove a directory.
val glob : ctxt:OASISContext.t -> string -> OASISTypes.host_filename listExpand a filename containing '*.ext' into corresponding real files.