前回は「関数」を使って処理をまとめる方法を学びました。 今回からいよいよ「自動化」の実感が得られる内容に入ります。 Pythonはコードの中からパソコン上のファイルやフォルダを操作できます。 「ダウンロードフォルダが散らかっている…」「毎月 ...
Pythonの高水準ファイル操作ライブラリである shutil モジュールには、make_archive () という魔法のような関数が用意されています。 これを使えば、以下のような煩わしい処理をすべて関数内部で自動的にやってくれます。 ディレクトリ内の再帰的なファイル探索 ...
This repository can control your trash in Linux, perhaps I'll work on this repository if I have free time. I wrote this just for fun in my free time and it's can useful.
Using OS and shutil module to interact with the operating system and files. Arrange all files according to the file extension.
Zipping and unzipping files is a common task in software development. Python provides built-in modules to handle this task easily. In this article, we will learn how to zip and unzip files using ...