Method
deleteFileIfExisting (docOrDir)
enumFiles(docOrDir)
exists(docOrDir)
getDirectory(docname)
getExtension(docname)
getFilename(docname)
getLastErrorString()
getTempFilePath ({dirname})
isDirectory(dirname)
18
Chapter 2: The Fireworks Object Model
Data type
Notes
string
Deletes the specified file or directory.
Returns
directory cannot be deleted. Unlike
deleteFile()
file or directory does not exist.
string
Returns an array of file URLs. If
a directory, the array contains an entry for
every file or directory that is contained in
the specified directory. If
the array contains a single entry (the
file passed in).
string
Returns
or file that exists;
string
Returns only the directory name from
docname
For example,
work/logo.png")
string
Returns the filename extension, if any, of
docname. For example,
Files.getExtension("birthday.png")
returns
extension, an empty string is returned. A
filename that is expressed as file://URL
is acceptable.
string
Returns just the filename from
which is expressed as file://URL. For
example,
work/logo.png")
none
If the last call to a method in a Files object
resulted in an error, returns a string that
describes the error. If the last call succeeded,
returns
string
The argument, if used, must be expressed as
file://URL. Returns a file URL in the
Temporary Files directory or in the specified
directory. This method does not create a file;
it simply returns a unique file URL that does
not conflict with existing files in the directory.
If
dirname
that is returned indicates a file in the specified
directory rather than in the Temporary
Files directory.
string
The argument must be expressed as file://
URL. Returns
refers to a directory that exists;
false
if successful;
true
false
, this method returns
docOrDir
if
refers to a directory
true
docOrDir
otherwise.
false
, which is expressed as file://URL.
Files.getDirectory("file://
returns
"file:///work"
. If the filename has no
".png"
Files.getFilename("file:///
returns
"logo.png"
.
null
is passed and is not
if the specified URL
true
otherwise.
if the file or
if the
true
is
docOrDir
is a file,
.
,
docname
.
, the URL
null
Need help?
Do you have a question about the FIREWORKS MX 2004-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers