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 4. Managing Files and Directories

In this chapter, we will cover the following:

  • Creating files and directories

  • Controlling how a file is copied

  • Managing temporary files and directories

  • Setting time-related attributes of a file or directory

  • Managing file ownership

  • Managing ACL file permissions

  • Managing POSIX attributes

  • Moving a file or directory

  • Deleting files and directories

  • Managing symbolic links

Introduction

It is often necessary to perform file manipulations such as creating files, manipulating their attributes and contents, or removing them from the filesystem. The addition of the java.lang.object.Files class in Java 7 simplifies this process. This class relies heavily on the use of the new java.nio.file.Path interface, which is discussed in ...

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