JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • NIO2: Files, Paths, Files.walk: file system traversal

    JAVA 25 SELF
    39 level,0 lecture
    An in-depth look at the file API NIO2: working with paths via Path and utilities in Files, traversing directory trees with Files.walk and the FileVisitor interface, filtering and search, size calculation and copying, try-with-resources, and handling IOException. We’ll compare it to the old File API and go through common mistakes when working with Stream<Path> streams.
    Open
  • File, Path, Files: getting file information

    JAVA 25 SELF
    39 level,1 lecture
    A concise and practical overview of the file I/O APIs: from the veteran File to modern Path and Files from the java.nio.file package. We’ll cover existence checks, type (file/directory), sizes, paths, basic attributes, and permissions. We’ll show when and why you should prefer Path/ Files, how to properly handle IOException, and which mistakes are most common in practice.
    Open
  • Globbing/PathMatcher, DirectoryStream.Filter

    JAVA 25 SELF
    39 level,2 lecture
    A practical lecture on selecting files in NIO2: we’ll compare glob and regex, learn to use PathMatcher, filter directory contents via Files.newDirectoryStream and DirectoryStream.Filter<Path>, as well as perform recursive search with Files.walk() and conditional selections with Files.find() and BiPredicate<Path, BasicFileAttributes>. We’ll discuss pattern nuances ( "**/*.java", "*.{png,jpg}"), performance, and common mistakes when closing resources.
    Open
  • FileVisitor — file system traversal and recursive operations

    JAVA 25 SELF
    39 level,3 lecture
    In this lecture, we’ll examine advanced file system traversal in Java: how a streamed traversal via Files.walk() differs from the event-driven API Files.walkFileTree(), how the FileVisitor<T> contract and the convenient adapter SimpleFileVisitor<T> work, what decisions FileVisitResult returns ( CONTINUE, SKIP_SUBTREE, SKIP_SIBLINGS, TERMINATE), how to correctly perform recursive deletion, size calculation, pattern-based search, and error handling, as well as which common mistakes occur in practice.
    Open
  • Getting and changing file attributes

    JAVA 25 SELF
    39 level,4 lecture
    A practical guide to working with file metadata via the java.nio.file.attribute API: read basic attributes with Files.readAttributes and BasicFileAttributes, dig into extended POSIX/ DOS attributes using PosixFileAttributes and DosFileAttributes, change timestamps and permissions ( FileTime, PosixFilePermissions, Files.setLastModifiedTime, Files.setAttribute). Plus access checks ( Files.isReadable/ isWritable/ isExecutable), cross‑platform nuances ( dos:* vs posix:*) and common pitfalls.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy