getAttribute
This function gets the attributes of the specified file or folder.
Syntax
function xweb.file.getAttribute(
path : String
) : String
Parameters
path A site or add-in URI argument. Files within the site must be prefixed by site:, and files within the add-in folder must be prefixed by addin:.
Returns
attributes A string that represents the attributes of the specified file or folder. Valid attributes are as follows:
R Specifies that the file or folder is read-only.
D Specifies that the object is a folder.
H Specifies that the file or folder is hidden.
S Specifies that the object is a system file or a system folder.
null Specifies that the specified file or folder does not exist.
See Also
Concepts
Copyright © 2011 by Microsoft Corporation. All rights reserved.