Archives
-
Introducing NIO.2 (JSR 203) Part 6: Filtering directory content and walking over a file tree
In this article we discuss how to walk over a directory tree and visit all of its content down to a specific level. We also discuss how to filter content of a directory based on the file attributes to find the files we need in a directory.
-
Introducing NIO.2 (JSR 203) Part 3: File System Attributes and Permissions support in NIO.2
In two previous entries I covered Introducing NIO.2 (JSR 203) Part 1: What are new features? and Introducing NIO.2 (JSR 203) Part 2: The Basics In this entry I will discuss Attributes introduced in NIO.2. Using attributes we can read platform specific attributes of an element in the file system. For example to hide a [...]
-
Introducing NIO.2 (JSR 203) Part 2: The Basics
In this part we will discuss the basic classes that we will work with them to have file system operations like copying a file, dealing with symbolic links, deleting a file, and so on. I will write a separate entry to introduce classes which are new to Java 7 for dealing with streams and file [...]
