Module
PhantomJS.File
- Package
- purescript-phantom
- Repository
- purescripters/purescript-phantom
This module defines types and functions for working with files. The following file modes are currently available:
R - read - don't create file if not exists RW - read+write - don't create fuke if not exists, truncate existing text W - write - create if not exists, truncate existing text A - append - create if not exists, append to existing text
#PhantomFSAff Source
type PhantomFSAff e a = Aff (phantomjsfs :: PHANTOMJSFS | e) a
#toForeignFileMode Source
toForeignFileMode :: FileMode -> Foreign
Used to convert a FileMode to a foreign type that can be passed into native phantomjs functions.
#PHANTOMJSFS Source
data PHANTOMJSFS :: Effect
#lastModified Source
lastModified :: forall e. FilePath -> Aff (FSEff e) Milliseconds