Browsing Wiremod's section
← Back to ACE
🔁

Mirrored article

This page is synced automatically from the wiremod/wire GitHub wiki (last synced 1 hour ago). Edits made here will be overwritten on the next sync — contribute on the source wiki instead.

e2 docs files

📁 Data StorageUpdated 1 hour ago•0 views
Files = fileLoad( Filename) Loads specified file to the server (100 ops) = fileCanLoad() Returns 1 if the file can be loaded (3 ops) = fileLoadQueued() Returns the number of files in the load queue (3

Jump to table of contents

Files
= fileLoad( Filename)
Loads specified file to the server (100 ops)

= fileCanLoad()
Returns 1 if the file can be loaded (3 ops)

= fileLoadQueued()
Returns the number of files in the load queue (3 ops)

= fileLoaded()
DEPRECATED. Use 'event fileLoaded(FilePath:string, Data:string)' instead! Returns whether or not the file has been loaded onto the server (5 ops)

= fileLoading()
DEPRECATED. Use 'event fileLoaded(FilePath:string, Data:string)' instead! Returns whether a file is currently uploading (5 ops)

= fileStatus()
DEPRECATED. Use 'event fileLoaded(FilePath:string, Data:string)' and 'event fileErrored(FilePath:string, Status:number)' instead! Returns the status of the upload in progress. Returns one of _FILE_UNKNOWN, _FILE_OK, _FILE_TIMEOUT, _FILE_404 or _FILE_TRANSFER_ERROR (5 ops)

= fileName()
DEPRECATED. Use 'event fileLoaded(FilePath:string, Data:string)' instead! Returns the name of the last uploaded file, or an empty string if there is no currently uploaded file (5 ops)

= fileRead()
DEPRECATED. Use 'event fileLoaded(FilePath:string, Data:string)' instead! Returns the contents of the last uploaded file, or an empty string if there is no currently uploaded file (10 ops)

= fileMaxSize()
Returns the maximum file size that can be uploaded or downloaded. Default is 300 KiB (3 ops)

= fileCanWrite()
Returns 1 if the file can be written (3 ops)

= fileWriteQueued()
Returns the number of files in the write queue (3 ops)

= fileWrite( Filename, Data)
Writes string data to the file overwriting it (100 ops)

= fileAppend( Filename, Data)
Adds string data to the end of the file (100 ops)

= fileList( Dir)
Loads a list of file names in the directory (100 ops)

= fileCanList()
Returns 1 if the file list can be uploaded to the server (3 ops)

= fileListQueued()
Returns the number of lists in the list queue (3 ops)

= fileLoadedList()
DEPRECATED. Use 'event fileList(Path:string, Contents:array)' instead! If the list has been loaded and it is called, it will return 1. Any time after that until a new list is loaded it will return 0 (5 ops)

= fileLoadingList()
DEPRECATED. Use 'event fileList(Path:string, Contents:array)' instead! Returns whether a list is currently uploading (5 ops)

= fileReadList()
Returns the contents of the last uploaded list (5 ops)

runOnFile( Active)
DEPRECATED. Use 'event fileLoaded(FilePath:string, Data:string)' instead! Specifies whether the E2 will run when a file finishes uploading (5 ops)

= fileClk()
DEPRECATED. Use 'event fileLoaded(FilePath:string, Data:string)' instead! Returns whether the execution was run because a file finished uploading (5 ops)

= fileClk( Filename)
DEPRECATED. Use 'event fileLoaded(FilePath:string, Data:string)' instead! Returns whether the execution was run because a file finished uploading and was that file of a specific file name (5 ops)

runOnList( Active)
DEPRECATED. Use 'event fileList(Path:string, Contents:array)' instead! Specifies whether the E2 will run when a file list finishes uploading (5 ops)

= fileListClk()
DEPRECATED. Use 'event fileList(Path:string, Contents:array)' instead! Returns whether the execution was run because a list was uploaded to the server (5 ops)

= fileListClk( Dir)
DEPRECATED. Use 'event fileList(Path:string, Contents:array)' instead! Returns whether the execution was run because a list with specified name was uploaded to the server (5 ops)

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.