ssCore.FileSys.clearAttrs

Clear attributes of the specified file or directory.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

path - A fully qualified path to a file or directory. This parameter supports monikers.

attributes - Flags for file attributes to be cleared. This parameter can be any combination of "A", "H", "R" and "S". Valid values include: A,H,R,S.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.FileSys.clearAttrs( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.FileSys.clearAttrs( paramsObject );


Notes:

The attributes string is a set of flags that allow you to clear one or more attributes in a single call.

Valid values are:

                

Examples:

ssCore.FileSys.clearAttrs({path:"startdir://file.txt", attributes:"R"});