O'Reilly logo

Java 7 New Features Cookbook by Jennifer L. Reese, Richard M. Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Locating Files and Directories Using Paths

In this chapter, we will cover the following:

  • Creating a Path object

  • Interoperability between java.io.File and java.nio.file.Files

  • Converting a relative path into an absolute path

  • Removing redundancies by normalizing a path

  • Combining paths using path resolution

  • Creating a path between two locations

  • Converting between path types

  • Determining whether two paths are equivalent

  • Managing symbolic links

Introduction

A filesystem is a way of organizing data on a computer. Normally, it consists of one or more top-level directories, each of which contains a hierarchy of files. The top-level directory is frequently referred to as the root. In addition, the filesystem is stored on a media, which is referred to as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required