Results of 1 - 10 of about 40 for shutil (0.009 sec.)
- shutil --- 高水準のファイル操作 16631
- shutil --- 高水準のファイル操作 ソースコード: Lib/shutil.py shutil モジュールは、ファイルやファイルの集合に対するさまざまな高水準の操作を提供します。 特に、ファイルのコピーや削除を行う関数が用意されています。 個々のファイルを操作する場合は
...os モジュールも参照してください。 警告 高水準のファイルコピー関数 ( shutil.copy() , shutil.copy2() ) でも、ファイルのメタデータの全てをコピーすることはできません。 POSIXプラットフォームでは、これは...を意味しています。 Windowsでは、ファイルオーナー、ACL、代替データストリームがコピーされません。 ディレクトリとファイルの操作 shutil. copyfileobj ( fsrc , fdst [ , length ] ) file-like object fsrc の内容を fdst へコピーします。 整数値 length は与えられた場...ファイルの内容を読み込む場合) は、読み込む前にファイルに似たオブジェクトの flush() または close() を必ず呼び出してください。 shutil. copyfile ( src , dst , * , follow_symlinks = True ) src という名前のファイルの内容 (メタデータを含まない) を dst という名... - https://man.mtool.work/python/3.14/library/shutil.html
- 監査イベント表 10453
- 監査イベント表 この表は、 CPython ランタイムと標準ライブラリ全体で sys.audit() または PySys_Audit() の呼び出しによって送出されるすべてのイベントを含んでいます。これらの呼び出しは、 3.8 以降に追加されました ( PEP 578 を参照) 。 これらのイベン
...y.spawn argv [1] resource.prlimit pid , resource , limits [1] resource.setrlimit resource , limits [1] setopencodehook [1] shutil.chown path , user , group [1] shutil.copyfile src , dst [1] [2] [3] shutil.copymode src , dst [1] [2] shutil.copystat src..., dst [1] [2] shutil.copytree src , dst [1] shutil.make_archive base_name , format , root_dir , base_dir [1] shutil.move src , dst [1] shutil.r...mtree path , dir_fd [1] shutil.unpack_archive filename , extract_dir , format [1] signal.pthread_kill thread_id , signalnum [1] smtplib.connect self , ho... - https://man.mtool.work/python/3.14/library/audit_events.html
- What's New In Python 3.8 9376
- What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ
...bpo-22640 .) shlex 新しい shlex.join() 関数は shlex.split() の逆操作を行います。 (Contributed by Bo Bayles in bpo-32102 .) shutil shutil.copytree() に dirs_exist_ok キーワード引数が追加されました。 (Contributed by Josh Bronson in bpo-20849 .) shutil.ma...ォルトで使うようになりました。 移植性と標準への準拠を改善します。 (Contributed by C.A.M. Gerlach in bpo-30661 .) Windows の shutil.rmtree() は、ディレクトリジャンクションの内容を先に再帰的に削除することなく、ジャンクションだけを削除するようになりました。...定されていない。 executable のパスにディレクトリが含まれる。 (Joannah Nanjekye と Victor Stinner による貢献、 bpo-35537 。) shutil.copyfile() 、 shutil.copy() 、 shutil.copy2() 、 shutil.copytree() 、 shutil.move() は、Linux と macOS でプラットフォーム固... - https://man.mtool.work/python/3.14/whatsnew/3.8.html
- What's New In Python 3.2 8378
- What's New In Python 3.2 著者 : Raymond Hettinger この記事では Python 3.1 と比較した Python 3.2 の新機能を説明します。 Python 3.2 は 2011 年 2 月 20 日にリリースされました。 主な変更点をいくつか取り上げ、例を示します。 すべての詳細については
...以下はファイルコピーを行う 4 つの並列スレッドを実行する、 ThreadPoolExecutor の単純な使用例です: import concurrent.futures , shutil with concurrent . futures . ThreadPoolExecutor ( max_workers = 4 ) as e : e . submit ( shutil . copy , 'src1.txt' , 'dest1....txt' ) e . submit ( shutil . copy , 'src2.txt' , 'dest2.txt' ) e . submit ( shutil . copy , 'src3.txt' , 'dest3.txt' ) e . submit ( shutil . copy , '...tenvb() または os.environb を使ってください。これは os.environ のバイト列バージョンです。 (Contributed by Victor Stinner.) shutil shutil.copytree() 関数に新たに 2 つのオプションが追加されました: ignore_dangling_symlinks : symlinks=False とするとこの関数... - https://man.mtool.work/python/3.14/whatsnew/3.2.html
- What's New In Python 3.12 8300
- What's New In Python 3.12 編集者 : Adam Turner この記事では Python 3.11 と比較した Python 3.12 の新機能を解説します。Python 3.12 は2023年10月2日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 693 -- Python 3.12 リリ
...の代わりに SyntaxError を送出するようになりました。 (Pablo Galindo が gh-96670 で貢献しました。) tarfile の展開用メソッドと shutil.unpack_archive() に、新しい filter 引数を追加しました。 展開先ディレクトリの外にファイルを作成するなど、予想外の動作や危険...しました。) random.expovariate() にデフォルト値 lambd=1.0 を追加しました。 (Raymond Hettinger が gh-100234 で貢献しました。) shutil shutil.make_archive() は、対応している独自のアーカイバーに root_dir 引数を渡すようになりました。 この場合、アーカイブ作成の...の現在の作業ディレクトリを一時的に root_dir に変更することはなくなりました。 (Serhiy Storchaka が gh-74696 で貢献しました。) shutil.rmtree() が新しい引数 onexc を受け付けるようになりました。 onerror と同様のエラーハンドラーですが、 (typ, val, tb) という... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
- 10. 標準ライブラリをひとめぐり 8222
- 10. 標準ライブラリをひとめぐり 10.1. オペレーティングシステムとのインターフェース os モジュールは、オペレーティングシステムと対話するための多くの関数を提供しています: >>> import os >>> os . getcwd () # Return the current working directory '
...s ) <OSモジュールの関数すべてのリストを返す> >>> help ( os ) <モジュールの docstring から生成された詳細なマニュアルを返す> shutil モジュールは、日常的なファイルやディレクトリの管理作業に使いやすい高水準のインターフェースを提供しています。 >>> import sh...util >>> shutil . copyfile ( 'data.db' , 'archive.db' ) 'archive.db' >>> shutil . move ( '/build/executables' , 'installdir' ) 'installdir... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- Python 3.16 で削除予定 8066
- Python 3.16 で削除予定 インポートシステム: モジュールの __spec__.loader を設定せずに __loader__ を設定することは非推奨です。 Python 3.16 では、インポートシステムや標準ライブラリは __loader__ を設定しなくなり、その値も参照しなくなります。 ar
...ットのない拡張子は非推奨となり、Python 3.16 では ValueError が発生します。 (Hugo van Kemenade が gh-75223 で貢献しました。) shutil : ExecError 例外は Python 3.14 から非推奨です。 Python 3.4 以降は shutil のどの関数でも使われておらず、現在は RuntimeError... - https://man.mtool.work/python/3.14/deprecations/pending-removal-in-3.16.html
- concurrent.futures --- 並列タスク実行 7910
- concurrent.futures --- 並列タスク実行 Added in version 3.2. ソースコード: Lib/concurrent/futures/thread.py 、 Lib/concurrent/futures/process.py および Lib/concurrent/futures/interpreter.py concurrent.futures モジュールは、呼び出し可能オブジ
...。 Executor はシャットダウンされます ( wait を True にして Executor.shutdown() を呼び出した場合と同様に待機します)。 import shutil with ThreadPoolExecutor ( max_workers = 4 ) as e : e . submit ( shutil . copy , 'src1.txt' , 'dest1.txt' ) e . submit ( sh...util . copy , 'src2.txt' , 'dest2.txt' ) e . submit ( shutil . copy , 'src3.txt' , 'dest3.txt' ) e . submit ( shutil . copy , 'src4.txt' , 'dest4.txt' ) バージョン 3.9 で変更: Added t... - https://man.mtool.work/python/3.14/library/concurrent.futures.html
- Python ドキュメントの目次 7832
- Python ドキュメントの目次 What's New in Python What's new in Python 3.14 概要 -- リリースハイライト 新しい機能 PEP 649 と PEP 749 : アノテーションの遅延評価 PEP 734 : 複数インタープリタ機能が標準ライブラリに追加 PEP 750 : テンプレート文字列
...s glob importlib io ipaddress itertools marshal math mimetypes mmap multiprocessing os os.path pathlib pdb queue random re shutil site sqlite3 ssl statistics subprocess sys tempfile time tkinter traceback types typing unicodedata venv warnings xml zipi...array asyncio calendar csv dis fractions importlib.resources inspect itertools math os os.path pathlib platform pdb random shutil sqlite3 statistics sys tempfile threading tkinter tokenize types typing unicodedata unittest uuid 最適化 CPython バイトコー...ス datetime enum fcntl fractions functools gzip hashlib IDLE と idelelib inspect locale logging math operator os pathlib re shutil socket sqlite3 string sys sysconfig tempfile threading time tkinter traceback typing unicodedata unittest venv warnings zi... - https://man.mtool.work/python/3.14/contents.html
- ライブラリと拡張 FAQ 7754
- ライブラリと拡張 FAQ ライブラリ一般の質問 作業 X を行うためのモジュールやアプリケーションを探すにはどうしますか? ライブラリリファンレス から関係がありそうな標準ライブラリモジュールがあるかどうか調べてください。 (標準ライブラリに何があるかが
...edirs(path) は中間のディレクトリが空である限り、それらを削除します。ディレクトリツリー全体とその中身全てを削除したいなら、 shutil.rmtree() を使ってください。 ファイルの名前を変更するには、 os.rename(old_path, new_path) を使ってください。 ファイルを切り...。 os.open() で開かれたファイル用の os.ftruncate(fd, offset) もあります。 fd はファイルディスクリプタ (小さい整数値) です。 shutil モジュールにも、 copyfile() 、 copytree() 、 rmtree() 等、ファイルに作用する関数がいくつか含まれます。 ファイルをコピーする...にはどうしますか? shutil モジュールに copyfile() 関数があります。注意点として、これは Windows NTFS ボリューム上の alternate data streams も macOS H... - https://man.mtool.work/python/3.14/faq/library.html