Loading topic
print. You should also know what files, directories, and relative and absolute paths are on your operating system. You don't need to have used os.path before, but the comparison below is easier to follow if you hav2 min readprint. Later chapters cover joining, taking apart, and resolving paths in detail. Here you learn the class spl2 min readPath objects from the previous chapters. Here you will build paths by joining segments with the / operator, see what the operator accepts, and learn the one behavior that causes real bugs.3 min readPath object and join segments with the / operator. It also assumes you know basic Python syntax and what files and directories are.2 min readPath with the / operator and read its parts (name, stem, suffix, parent). Those parts are covered in the two previous chapters. Here you will use them to make new paths from existing ones.2 min readPath objects with the / operator and attributes such as name and parent. You should also know the difference between relative and absolute paths. Here you will learn where a relative path points, how to find well-known locations, and how to t2 min readPath object and join segments with /, as covered in earlier chapters. Here you will ask the file system questions about a path. Creating a Path never touches the disk, so a path can point at something that does not exist. These checks tell you what is reall2 min readexists() and is_file(), and handle basic Python exceptions. Here you will read and write whole files, and open files for streaming, using methods on the path itself.2 min read/, check them with exists, is_file, and is_dir, and read and write files with Path methods. It covers creating directories with mkdir and listing their contents with iterdir.2 min readPath objects, use / to join them, and check is_file() and is_dir(). It also assumes you can write a basic for loop. Here you will search a directory for files whose names match a pattern.2 min readPath objects, check them with exists(), is_file() and is_dir(), and create directories with mkdir. Here you will change what is on disk: move files, remove them, and read facts about them such as size and modification time.2 min readPath objects (the / operator, name, suffix, parent) and have used open() or the os module before. It covers passing Path objects to code written for plain strings, and the cases where that fails.2 min readPath objects, the / operator, and the path attributes name, stem, suffix, and parent. It also assumes you know the difference between pure and concrete paths from earlier chapters.2 min read/, read their parts, and use exists, read_text, mkdir, and glob. It covers the mistakes that most often cause bugs, and the fix for each.2 min read