Package test

Source Code of test.ListSystemRootDirectoriesTest

package test;

import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;

public class ListSystemRootDirectoriesTest {

  /**
   * @param args
   */
  public static void main(String[] args) {
    FileSystem fileSystem = FileSystems.getDefault();
    for(Path rootDirectory: fileSystem.getRootDirectories()) {
      System.out.println(rootDirectory.getFileSystem());
      System.out.println(rootDirectory.toString());
    }
  }

}
TOP

Related Classes of test.ListSystemRootDirectoriesTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.