File Data Type

Properties
name data type constraints description
usableSpace number required long
parent string  
totalSpace number required long
hidden boolean required boolean
absolutePath string  
directory boolean required boolean
path string  
file boolean required boolean
freeSpace number required long
absolute boolean required boolean
absoluteFile File  
canonicalFile File  
canonicalPath string  
name string  
parentFile File  

Example

{
  "usableSpace" : 12345,
  "parent" : "...",
  "totalSpace" : 12345,
  "hidden" : true,
  "absolutePath" : "...",
  "directory" : true,
  "path" : "...",
  "file" : true,
  "freeSpace" : 12345,
  "absolute" : true,
  "absoluteFile" : {
    "usableSpace" : 12345,
    "parent" : "...",
    "totalSpace" : 12345,
    "hidden" : true,
    "absolutePath" : "...",
    "directory" : true,
    "path" : "...",
    "file" : true,
    "freeSpace" : 12345,
    "absolute" : true,
    "absoluteFile" : { },
    "canonicalFile" : { },
    "canonicalPath" : "...",
    "name" : "...",
    "parentFile" : { }
  },
  "canonicalFile" : {
    "usableSpace" : 12345,
    "parent" : "...",
    "totalSpace" : 12345,
    "hidden" : true,
    "absolutePath" : "...",
    "directory" : true,
    "path" : "...",
    "file" : true,
    "freeSpace" : 12345,
    "absolute" : true,
    "absoluteFile" : { },
    "canonicalFile" : { },
    "canonicalPath" : "...",
    "name" : "...",
    "parentFile" : { }
  },
  "canonicalPath" : "...",
  "name" : "...",
  "parentFile" : {
    "usableSpace" : 12345,
    "parent" : "...",
    "totalSpace" : 12345,
    "hidden" : true,
    "absolutePath" : "...",
    "directory" : true,
    "path" : "...",
    "file" : true,
    "freeSpace" : 12345,
    "absolute" : true,
    "absoluteFile" : { },
    "canonicalFile" : { },
    "canonicalPath" : "...",
    "name" : "...",
    "parentFile" : { }
  }
}