The "advancedfileslist" web service provides directory listing capabilities, typically listing all files in a specified directory along with their meta-data. Only data files and directories are listed. Unrecognized files are ignored. For cases where INTGeoServer accesses directories containing a large number of files, consider using fastfileslist instead.
A typical URL for the advancedfileslist is: http://myserver.mycompany.com:8080/INTGeoServer/json/advancedfileslist?dir=.&datatype=seismic&includeDirectories=True&filelimit=500
The following parameters are available:
dir: the relative path of the directory to list. This is a required parameter. If a path encoder is used, this path is encoded.
datatype: the type of data to list. Example: seismic for seismic data, well for well data. This is an optional parameter, When not specified, all types of datasets will be listed. You can retrieve the list of supported data types from the datatypes web service
filelimit: the maximum number of files to list. This is an optional parameter. The default has no limit.
includeDirectories: whether to include sub directories. Can be True or False. This is an optional parameter. The default is False.
This web service can be used to build data browsers such as this one:
Here is an example response. This response has been formatted to improve readability
The format of each entry is the same format as the format used by the filemetadata service.
{
"files":[
{
"name":"testSEGD1.segd",
"relativePath":"testSEGD1.segd",
"logicalRelativePath":"testSEGD1.segd",
"hasParentRelativePath":false,
"absolutePath":"D:\\INT_GEOSERVER_HOME\\testSEGD1.segd",
"isDirectory":false,
"size":27378880,
"lastModified":1471643347050,
"dataType":"seismic"
},
{
"name":"testSGY1.sgy",
"relativePath":"testSGY1.sgy",
"logicalRelativePath":"testSGY1.sgy",
"hasParentRelativePath":false,
"absolutePath":"D:\\INT_GEOSERVER_HOME\\testSGY1.sgy",
"isDirectory":false,
"size":1257840,
"lastModified":1471643345350,
"dataType":"seismic"
},
{
"name":"testXGY1.sgy",
"relativePath":"testXGY1.sgy",
"logicalRelativePath":"testXGY1.sgy",
"hasParentRelativePath":false,
"absolutePath":"D:\\INT_GEOSERVER_HOME\\testXGY1.sgy",
"isDirectory":false,
"size":32145840,
"lastModified":1471643349406,
"dataType":"seismic"
},
{
"name":"testXGY1.xgy",
"relativePath":"testXGY1.xgy",
"logicalRelativePath":"testXGY1.xgy",
"hasParentRelativePath":false,
"absolutePath":"D:\\INT_GEOSERVER_HOME\\testXGY1.xgy",
"isDirectory":false,
"size":4131,
"lastModified":1471643349406,
"dataType":"seismic"
}
]
}