Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > File class > File.remove() | |||
Flash Media Server 2.
fileObject.remove()
None.
A Boolean value indicating whether the file or directory was removed successfully (true) or not (false).
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.
The following if statement lets you execute code when myFileObject is removed:
if (myFileObject.remove()){
// Do something here.
}