<h2>org.das2.util.filesystem.FileSystem</h2><p>Filesystems provide an abstraction layer so that clients can access any hierarchy of files in a implementation-independent way. For example, remote filesystems accessible via HTTP are accessible through the same interface as a local filesystem.</p> <hr> <a name="PROP_CASE_INSENSITIVE"></a> <h2>PROP_CASE_INSENSITIVE</h2> <p>Boolean.TRUE if the filesystem ignores case, such as Windows local filesystem.</p> <hr> <a name="NULL"></a> <h2>NULL</h2> <p>result from failed listing, etc.</p> <hr> <a name="create"></a> <h2><del>create</del></h2> Deprecated: use create( URI root ) instead. create( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> s ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a><br> create( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> s, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> mon ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a><br> create( <a href='https://docs.oracle.com/javase/8/docs/api/java/net/URL.html'>java.net.URL</a> root, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> mon ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a><br> create( <a href='https://docs.oracle.com/javase/8/docs/api/java/net/URI.html'>java.net.URI</a> root ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a><br> create( <a href='https://docs.oracle.com/javase/8/docs/api/java/net/URI.html'>java.net.URI</a> root, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> mon ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a><br> <hr> <a name="createFileSystem"></a> <h2>createFileSystem</h2> createFileSystem( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> directory ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a> <p>create a new filesystem that is a part of this filesystem, rooted at directory.</p> <h3>Parameters</h3> directory - subdirectory within the filesystem. <h3>Returns:</h3> the new FileSystem <br><br> <a href="https://github.com/autoplot/dev/search?q=createFileSystem&unscoped_q=createFileSystem">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#createFileSystem">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="getExceptionHandler"></a> <h2>getExceptionHandler</h2> getExceptionHandler( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/ExceptionHandler.html'>org.das2.util.ExceptionHandler</a> <p>return the exception handler.</p> <h3>Returns:</h3> the exception handler. <br><br> <a href="https://github.com/autoplot/dev/search?q=getExceptionHandler&unscoped_q=getExceptionHandler">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#getExceptionHandler">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="getFileObject"></a> <h2>getFileObject</h2> getFileObject( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileObject.html'>org.das2.util.filesystem.FileObject</a> <p>return the FileObject that corresponds to the name.</p> <h3>Parameters</h3> filename - the file name within the filesystem <h3>Returns:</h3> the FileObject <br><br> <a href="https://github.com/autoplot/dev/search?q=getFileObject&unscoped_q=getFileObject">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#getFileObject">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="getListing"></a> <h2>getListing</h2> getListing( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem/DirectoryEntry.html'>org.das2.util.filesystem.FileSystem.DirectoryEntry[]</a> des ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> <p>part of the refactoring to cache time stamps as well, this convenience method returns the old string. This returns des.name, plus '/' if it's a directory.</p> <h3>Parameters</h3> des - array of directory entries. <h3>Returns:</h3> des.name, and <br><br> <a href="https://github.com/autoplot/dev/search?q=getListing&unscoped_q=getListing">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#getListing">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> getListing( <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> des ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a><br> <hr> <a name="getLocalRoot"></a> <h2>getLocalRoot</h2> getLocalRoot( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> <p>return the folder that is a local copy of the filesystem. For LocalFilesystem, this is the same as the filesystem. For remote filesystems, this is a folder within their home directory. Note File.getAbsolutePath() returns the string representation of this root.</p> <h3>Returns:</h3> the folder that is a local copy of the filesystem. <br><br> <a href="https://github.com/autoplot/dev/search?q=getLocalRoot&unscoped_q=getLocalRoot">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#getLocalRoot">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="getProperty"></a> <h2>getProperty</h2> getProperty( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> name ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> <p>return a filesystem property, such as PROP_CASE_INSENSITIVE.</p> <h3>Parameters</h3> name - property name, e.g. PROP_CASE_INSENSITIVE <h3>Returns:</h3> the property value, e.g. Boolean.TRUE <br><br> <a href="https://github.com/autoplot/dev/search?q=getProperty&unscoped_q=getProperty">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#getProperty">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="getRootURI"></a> <h2>getRootURI</h2> getRootURI( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/net/URI.html'>java.net.URI</a> <p>return the URI identifying the root of the filesystem.</p> <h3>Returns:</h3> a java.net.URI <br><br> <a href="https://github.com/autoplot/dev/search?q=getRootURI&unscoped_q=getRootURI">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#getRootURI">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="isDirectory"></a> <h2>isDirectory</h2> isDirectory( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → boolean <p>return true if the name is a directory.</p> <h3>Parameters</h3> filename - the name <h3>Returns:</h3> true if the name is a directory. <br><br> <a href="https://github.com/autoplot/dev/search?q=isDirectory&unscoped_q=isDirectory">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#isDirectory">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="listDirectory"></a> <h2>listDirectory</h2> listDirectory( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> directory ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> <p>returns a list of the names of the files in a directory. Names ending in "/" are themselves directories, and the "/" is not part of the name. This is optional, and a directory may or may not be tagged with the trailing slash.</p> <h3>Parameters</h3> directory - the directory name within the filesystem. <h3>Returns:</h3> list of files and folders within the filesystem. <br><br> <a href="https://github.com/autoplot/dev/search?q=listDirectory&unscoped_q=listDirectory">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#listDirectory">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> listDirectory( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> directory, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> monitor ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a><br> listDirectory( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> directory, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> regex ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a><br> listDirectory( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> directory, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> regex, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> monitor ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a><br> <hr> <a name="listDirectoryDeep"></a> <h2>listDirectoryDeep</h2> listDirectoryDeep( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> directory, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> regex ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> <p>do a deep listing of directories, resolving wildcards along the way. Note this can be quite expensive, so be careful when levels are too deep.</p> <h3>Parameters</h3> directory - location within the filesystem. <br> regex - regular expression (.*\.dat) (not a glob like *.dat). <h3>Returns:</h3> the entire path of each matching name, including the directory within the filesystem. <br><br> <a href="https://github.com/autoplot/dev/search?q=listDirectoryDeep&unscoped_q=listDirectoryDeep">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#listDirectoryDeep">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="peek"></a> <h2>peek</h2> peek( <a href='https://docs.oracle.com/javase/8/docs/api/java/net/URI.html'>java.net.URI</a> root ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a> <p>allow factories to peek, so they can see if there is a parent that is offline.</p> <h3>Parameters</h3> root - the URI <h3>Returns:</h3> null if not existing, or the filesystem for the URI. <br><br> <a href="https://github.com/autoplot/dev/search?q=peek&unscoped_q=peek">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#peek">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="peekInstances"></a> <h2>peekInstances</h2> peekInstances( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem[]</a> <p>return a copy of all cached filesystems</p> <h3>Returns:</h3> an org.das2.util.filesystem.FileSystem[] <br><br> <a href="https://github.com/autoplot/dev/search?q=peekInstances&unscoped_q=peekInstances">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#peekInstances">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="recreate"></a> <h2>recreate</h2> recreate( <a href='https://docs.oracle.com/javase/8/docs/api/java/net/URI.html'>java.net.URI</a> root ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a> <p>creates a FileSystem, removing and recreating it if it was in the cache.</p> <h3>Parameters</h3> root - an URI <h3>Returns:</h3> an org.das2.util.filesystem.FileSystem <br><br> <a href="https://github.com/autoplot/dev/search?q=recreate&unscoped_q=recreate">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#recreate">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> recreate( <a href='https://docs.oracle.com/javase/8/docs/api/java/net/URI.html'>java.net.URI</a> root, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> mon ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a><br> <hr> <a name="registerFileSystemFactory"></a> <h2>registerFileSystemFactory</h2> registerFileSystemFactory( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> proto, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystemFactory.html'>org.das2.util.filesystem.FileSystemFactory</a> factory ) → void <p>register a code for handling a filesystem type. For example, an FTP implementation can be registered to handle URIs like "ftp://autoplot.org/"</p> <h3>Parameters</h3> proto - protocol identifier, like "ftp" "http" or "sftp" <br> factory - the factory which will handle the URI. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=registerFileSystemFactory&unscoped_q=registerFileSystemFactory">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#registerFileSystemFactory">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="reset"></a> <h2>reset</h2> reset( ) → void <p>remove all the cached FileSystem instances.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=reset&unscoped_q=reset">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#reset">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> reset( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystem.html'>org.das2.util.filesystem.FileSystem</a> fs ) → void<br> <hr> <a name="setExceptionHandler"></a> <h2>setExceptionHandler</h2> setExceptionHandler( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/ExceptionHandler.html'>org.das2.util.ExceptionHandler</a> eh ) → void <p>set the exception handler that is called when exceptions occur.</p> <h3>Parameters</h3> eh - the exception handler. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setExceptionHandler&unscoped_q=setExceptionHandler">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#setExceptionHandler">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="settings"></a> <h2>settings</h2> settings( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/filesystem/FileSystemSettings.html'>org.das2.util.filesystem.FileSystemSettings</a> <p>access the file system settings.</p> <h3>Returns:</h3> the single settings object. <br><br> <a href="https://github.com/autoplot/dev/search?q=settings&unscoped_q=settings">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#settings">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="splitUrl"></a> <h2>splitUrl</h2> splitUrl( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> surl ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> <p>returns a String[5]:<code><pre> [0] is proto "http://" [1] will be the host [2] is proto + path [3] is proto + path + file [4] is file ext [5] is params, not including ?. </pre></code> The URL must start with one of file:, ftp://, http://, https://, sftp:// and "c:" is interpreted as "file:///c:..."</p> <h3>Parameters</h3> surl - a URL string to parse. <h3>Returns:</h3> the parsed URL. <br><br> <a href="https://github.com/autoplot/dev/search?q=splitUrl&unscoped_q=splitUrl">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#splitUrl">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="toCanonicalFilename"></a> <h2>toCanonicalFilename</h2> toCanonicalFilename( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>returns the canonical name /a/b/c.dat of a string that may contain backslashes and might not have the leading / and trailing slashes. Also, double slashes (//) are removed. Even for Windows files, forward slashes are used.</p> <h3>Parameters</h3> filename - name <h3>Returns:</h3> name with \ converted to /, etc. <br><br> <a href="https://github.com/autoplot/dev/search?q=toCanonicalFilename&unscoped_q=toCanonicalFilename">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#toCanonicalFilename">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br> <hr> <a name="toCanonicalFolderName"></a> <h2>toCanonicalFolderName</h2> toCanonicalFolderName( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> name ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>returns the canonical name (/a/b/) of a string that may contain backslashes and might not have the leading / and trailing slashes. Also, double slashes (//) are removed. Note this is the name of the FileObject within the FileSystem.</p> <h3>Parameters</h3> name - folder name <h3>Returns:</h3> name with \ converted to /, etc. <br><br> <a href="https://github.com/autoplot/dev/search?q=toCanonicalFolderName&unscoped_q=toCanonicalFolderName">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/FileSystem.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/FileSystem.html#toCanonicalFolderName">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/FileSystem.java">[view source]</a> <br> <br>