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 5. Managing Filesystems

In this chapter, we will cover the following:

  • Getting FileStore information

  • Getting FileSystem information

  • Using the SimpleFileVisitor class to traverse filesystems

  • Deleting a directory using the SimpleFileVisitor class

  • Copying a directory using the SimpleFileVisitor class

  • Processing the contents of a directory by using the DirectoryStream interface as explained in the Filtering a directory using globbing recipe

  • Writing your own directory filter

  • Monitoring file events using WatchEvents

  • Understanding the ZIP filesystem provider

Introduction

A filesystem is one or more top-level root directories containing a hierarchy of files. A filesystem is supported by a file store that is the provider for the storage of the files. This ...

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