---
title: "Discussion on \"File Modes, Builder Pattern, and Path / PathBuf in Rust\" | Hashnode"
description: "Discussion on \"File Modes, Builder Pattern, and Path / PathBuf in Rust\". A practical guide to files and paths in Rust: File::options(), POSIX flags, Path vs PathBuf, and ergonomic APIs with impl AsRef<Path>."
url: "https://hashnode.com/posts/rust-files-tempfile-and-docs/6b1175a603580d7b66c82399"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [File Modes, Builder Pattern, and Path / PathBuf in Rust](https://eagleblog.hashnode.dev/rust-files-tempfile-and-docs?utm_source=hashnode&utm_medium=feed)

A practical guide to files and paths in Rust: File::options(), POSIX flags, Path vs PathBuf, and ergonomic APIs with impl AsRef<Path>.

1d ago · 8 min read · eagleblog.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)

## Written by

[Eagle](https://hashnode.com/@eagle2000)

@eagle2000

  
[View profile](https://hashnode.com/@eagle2000)

Software Engineer writing about Rust, Flutter/Dart, ESP32 & performance

Cheerful Software Engineer writing about Rust, Flutter/Dart, ESP32, and photography. Author of EagleBlog (eagle2000.space) and the "Programmer's Lighthouse" channel.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
