Table of Contents

FILEOPRESULT property (Filesystem)

Description

Returns an array containing a code and description that describes the result of executing a FILESYSTEM method. The following methods set the FILEOPRESULT property when they are executed:

• COPYDIR

• COPYFILES

• DELETEFILES

• GETLONGPATH

• GETSHORTPATH

• MAKEDIR

• MOVEDIR

• MOVEFILES

• REMOVEDIR

• RENAMEDIR

• RENAMEFILE

Property Value

This property is an @fm-delimited array containing a numeric code and a text description of the result like so:

<1> Code

<2> Description

Property Traits

DevelopmentRuntimeIndexedScaledSynthetic
N/AGetNoN/ANo

Remarks

Equated constants for use with the FILEOPRESULT property can be found in the PS_FILESYSTEM_EQUATES insert record.

Example

 
// Make a directory and check the error details if it fails

   $Insert PS_FileSystem_Equates

   

   If Exec_Method( "FILESYSTEM", "MAKEDIR", "c:\temp\newdir" ) Else

   

      ErrorInfo = Get_Property( "FILESYSTEM", "FILEOPRESULT" )

      

      ErrorCode = ErrorInfo<PS_FOR_ERRORCODE$>

      ErrorText = ErrorInfo<PS_FOR_ERRORTEXT$>

      

   End
 
 
 

See Also

COPYDIR method, COPYFILES method, DELETEFILES method, GETLONGPATH method, GETSHORTPATH method, MAKEDIR method, MOVEDIR method, MOVEFILES method, REMOVEDIR method, RENAMEDIR method, RENAMEFILE method