April 2026
Intermediate
683 pages
25h 29m
English
Reading and writing files is an important aspect of file handling, which we covered in the previous sections. An equally important aspect is to conduct file system operations. In your applications, you might need to examine folders, move files, and perform other such tasks. In this section, we’ll focus on such operations and discover how Swift empowers programmers to handle them.
Swift has a built-in class called FileManager, which is the central stopping point for folder examination—and much more. In this section, we’ll tackle some typical requirements and see how FileManager can be used to solve them.
Listing 13.25 demonstrates how to list all files and folders ...
Read now
Unlock full access