refactor: split File Manipulation into Paths and File Watching and File Type Detection

File type detection is a different job from paths and file watching, and splitting them leaves room for a challenger in each without passing the cap.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-10-16 17:26:33 +08:00
co-authored by Claude
parent 3e6e5c1932
commit e011e9a1f1
+7 -5
View File
@@ -963,11 +963,13 @@ _Libraries for parsing and manipulating specific file formats._
_Libraries for file manipulation._
- [mimetypes](https://docs.python.org/3/library/mimetypes.html) - (Python standard library) Map filenames to MIME types.
- [pathlib](https://docs.python.org/3/library/pathlib.html) - (Python standard library) A cross-platform, object-oriented path library.
- [watchfiles](https://github.com/samuelcolvin/watchfiles) - Simple, modern and fast file watching and code reload in python.
- [watchdog](https://github.com/gorakhargosh/watchdog) - API and shell utilities to monitor file system events.
- [python-magic](https://github.com/ahupp/python-magic) - A Python interface to the libmagic file type identification library.
- Paths and File Watching
- [pathlib](https://docs.python.org/3/library/pathlib.html) - (Python standard library) A cross-platform, object-oriented path library.
- [watchfiles](https://github.com/samuelcolvin/watchfiles) - Simple, modern and fast file watching and code reload in python.
- [watchdog](https://github.com/gorakhargosh/watchdog) - API and shell utilities to monitor file system events.
- File Type Detection
- [mimetypes](https://docs.python.org/3/library/mimetypes.html) - (Python standard library) Map filenames to MIME types.
- [python-magic](https://github.com/ahupp/python-magic) - A Python interface to the libmagic file type identification library.
**Media**