80
Server-Side ActionScript Language Reference
See also
File.read()
,
File.readAll()
,
File.readByte()
File.remove()
Availability
Flash Media Server 2.
Usage
fileObject
.remove()
Parameters
None.
Returns
A Boolean value indicating whether the file or directory was removed successfully (
true
) or
not (
false
).
Description
Method; removes the file or directory specified to by the File object. The method returns
false
if the file is open, the path points to a root folder, or the directory is not empty.
Example
The following
if
statement lets you execute code when
myFileObject
is removed:
if (myFileObject.remove()){
// Do something here.
}
File.renameTo()
Availability
Flash Media Server 2.
Usage
fileObject
.renameTo(
name
)
Содержание FLASH MEDIA SERVER 2
Страница 1: ...Server Side ActionScript Language Reference...
Страница 4: ...4 Contents...
Страница 228: ...228 Server Side ActionScript Language Reference...
Страница 234: ...234 Server Side Information Objects...