Skip to content

Latest commit

 

History

History
37 lines (36 loc) · 1.21 KB

File metadata and controls

37 lines (36 loc) · 1.21 KB
layout flashcard-topic
title Files
main_card_title Java Files
main_card_bg #6586c3
card_bg #9aacd5
cards
title description
Path Class
Represents file or directory path
title description
Paths.get()
Method to create a Path object
title description
Predicate
Functional interface returning boolean with one argument
title description
BiPredicate
Functional interface returning boolean with two arguments
title description
Files Class
Provides utility methods for file and directory operations
title description
Files.createDirectory()
Creates a new directory
title description
Files.delete()
Deletes a file or directory
title description
Files.copy()
Copies a file or directory from one location to another
title description
Files.move()
Moves a file or directory from one location to another
title description
Files.exists()
Checks if a file or directory exists
title description
Files.find()
Recursively searches for files and directories
title description
Files.lines()
Reads file as a Stream of lines
title description
Files.write()
Writes bytes to a file in Java