Results of 1 - 10 of about 212 for Directory (0.035 sec.)
- pathlib --- オブジェクト指向のファイルシステムパス — Python 3.14.8 ドキュメント 9355
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » pathlib --- オブジェクト指向のファイルシステムパス テーマ 自動 ライト ダーク | pathlib --- オブ
...foo' ), Path ( 'bar' )) PurePosixPath('foo/bar') When pathsegments is empty or consists only of empty strings, the current directory is assumed: >>> PurePath (), PurePath ( '' ) (PurePosixPath('.'), PurePosixPath('.')) あるパス構成要素が絶対パスである場合...ク自身の情報を返します。 Path. exists ( * , follow_symlinks = True ) ¶ Return True if the path points to an existing file or directory and False if the path is invalid, inaccessible or missing. Use Path.stat() to distinguish between these cases. このメソッド...ンクが存在するかを確認したい場合は follow_symlinks=False 引数を追加してください。 >>> Path ( '' ) . exists () # The current directory. True >>> Path ( '.' ) . exists () True >>> Path ( 'setup.py' ) . exists () True >>> Path ( '/etc' ) . exists () True >>>... - https://man.mtool.work/python/3.14/library/pathlib.html
- pathlib --- オブジェクト指向のファイルシステムパス — Python 3.14.8 ドキュメント 9355
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » pathlib --- オブジェクト指向のファイルシステムパス テーマ 自動 ライト ダーク | pathlib --- オブ
...foo' ), Path ( 'bar' )) PurePosixPath('foo/bar') When pathsegments is empty or consists only of empty strings, the current directory is assumed: >>> PurePath (), PurePath ( '' ) (PurePosixPath('.'), PurePosixPath('.')) あるパス構成要素が絶対パスである場合...ク自身の情報を返します。 Path. exists ( * , follow_symlinks = True ) ¶ Return True if the path points to an existing file or directory and False if the path is invalid, inaccessible or missing. Use Path.stat() to distinguish between these cases. このメソッド...ンクが存在するかを確認したい場合は follow_symlinks=False 引数を追加してください。 >>> Path ( '' ) . exists () # The current directory. True >>> Path ( '.' ) . exists () True >>> Path ( 'setup.py' ) . exists () True >>> Path ( '/etc' ) . exists () True >>>... - https://man.mtool.work/python/3.14/library/pathlib.html
- email: 使用例 — Python 3.14.8 ドキュメント 8838
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email : 使用例 テーマ 自動 ライト ダーク | em
...ている内容全体をひとつの電子メールメッセージとして送信するやり方です: [ 1 ] #!/usr/bin/env python3 """Send the contents of a directory as a MIME message.""" import os import smtplib # For guessing MIME type based on file name extension import mimetypes from...ailMessage from email.policy import SMTP def main (): parser = ArgumentParser ( description = """ \ Send the contents of a directory as a MIME message. Unless the -o option is given, the email is sent by forwarding to your local SMTP server, which then do...es the normal delivery process. Your local machine must be running an SMTP server. """ ) parser . add_argument ( '-d' , '--directory' , help = """Mail the contents of the specified directory, otherwise use the current directory. Only the regular files in... - https://man.mtool.work/python/3.14/library/email.examples.html
- http.server --- HTTP サーバー — Python 3.14.8 ドキュメント 8838
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.server --- HTTP サーバー テーマ 自動 ライト ダーク | http.server --- HTTP サーバー ¶ ソー
...s, it now always returns the IP address. class http.server. SimpleHTTPRequestHandler ( request , client_address , server , directory = None ) ¶ This class serves files from the directory directory and below, or the current directory if directory is not pr...ovided, directly mapping the directory structure to HTTP requests. バージョン 3.7 で変更: Added the directory parameter. バージョン 3.9 で変更: The directory par...になります。 __version__ はこのモジュールで定義されている値です。 index_pages ¶ Specifies the filenames that are treated as directory index pages. Defaults to ("index.html", "index.htm") . Added in version 3.12. extensions_map ¶ A dictionary mapping suffix... - https://man.mtool.work/python/3.14/library/http.server.html
- email: 使用例 — Python 3.14.8 ドキュメント 8838
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email : 使用例 テーマ 自動 ライト ダーク | em
...ている内容全体をひとつの電子メールメッセージとして送信するやり方です: [ 1 ] #!/usr/bin/env python3 """Send the contents of a directory as a MIME message.""" import os import smtplib # For guessing MIME type based on file name extension import mimetypes from...ailMessage from email.policy import SMTP def main (): parser = ArgumentParser ( description = """ \ Send the contents of a directory as a MIME message. Unless the -o option is given, the email is sent by forwarding to your local SMTP server, which then do...es the normal delivery process. Your local machine must be running an SMTP server. """ ) parser . add_argument ( '-d' , '--directory' , help = """Mail the contents of the specified directory, otherwise use the current directory. Only the regular files in... - https://man.mtool.work/python/3.14/library/email.examples.html
- http.server --- HTTP サーバー — Python 3.14.8 ドキュメント 8838
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.server --- HTTP サーバー テーマ 自動 ライト ダーク | http.server --- HTTP サーバー ¶ ソー
...s, it now always returns the IP address. class http.server. SimpleHTTPRequestHandler ( request , client_address , server , directory = None ) ¶ This class serves files from the directory directory and below, or the current directory if directory is not pr...ovided, directly mapping the directory structure to HTTP requests. バージョン 3.7 で変更: Added the directory parameter. バージョン 3.9 で変更: The directory par...になります。 __version__ はこのモジュールで定義されている値です。 index_pages ¶ Specifies the filenames that are treated as directory index pages. Defaults to ("index.html", "index.htm") . Added in version 3.12. extensions_map ¶ A dictionary mapping suffix... - https://man.mtool.work/python/3.14/library/http.server.html
- 変更履歴 — Python 3.14.8 ドキュメント 8785
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...(e.g. spam:eggs ) no longer discards the resolved part. A path relative to another drive is now resolved against the root directory of that drive. gh-89760 : Fix os.path.realpath() on Windows: the \\?\ prefix is no longer stripped from a volume GUID path...1 : IDLE no longer fails to start with python -m idlelib , and its user process no longer fails to start, when the current directory contains user files with the same names as standard library modules that IDLE imports, such as random.py or tkinter.py . g...the tarfile data and tar extraction filters where crafted archives could create a symlink pointing outside the destination directory. This was a bypass of CVE 2025-4330 . gh-150743 : http.client now limits the number of chunked-response trailer lines it w... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- zipfile --- ZIP アーカイブの処理 — Python 3.14.8 ドキュメント 8468
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ圧縮とアーカイブ » zipfile --- ZIP アーカイブの処理 テーマ 自動 ライト ダーク | zipfile --- ZIP アーカイブの処理 ¶ Source cod
...parameter. バージョン 3.11 で変更: Added support for specifying member name encoding for reading metadata in the zipfile's directory and file headers. ZipFile. close ( ) ¶ アーカイブファイルをクローズします。 close() はプログラムを終了する前に必ず呼び出さ...o 'rb' . ZipFile. extract ( member , path = None , pwd = None ) ¶ Extract a member from the archive to the current working directory; member must be its full name or a ZipInfo object. Its file information is extracted as accurately as possible. path speci...fies a different directory to extract to. member can be a filename or a ZipInfo object. pwd is the password used for encrypted files as a bytes objec... - https://man.mtool.work/python/3.14/library/zipfile.html
- zipfile --- ZIP アーカイブの処理 — Python 3.14.8 ドキュメント 8468
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ圧縮とアーカイブ » zipfile --- ZIP アーカイブの処理 テーマ 自動 ライト ダーク | zipfile --- ZIP アーカイブの処理 ¶ Source cod
...parameter. バージョン 3.11 で変更: Added support for specifying member name encoding for reading metadata in the zipfile's directory and file headers. ZipFile. close ( ) ¶ アーカイブファイルをクローズします。 close() はプログラムを終了する前に必ず呼び出さ...o 'rb' . ZipFile. extract ( member , path = None , pwd = None ) ¶ Extract a member from the archive to the current working directory; member must be its full name or a ZipInfo object. Its file information is extracted as accurately as possible. path speci...fies a different directory to extract to. member can be a filename or a ZipInfo object. pwd is the password used for encrypted files as a bytes objec... - https://man.mtool.work/python/3.14/library/zipfile.html
- shutil --- 高水準のファイル操作 — Python 3.14.8 ドキュメント 8003
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » shutil --- 高水準のファイル操作 テーマ 自動 ライト ダーク | shutil --- 高水準のファイル操作 ¶
...e = None , copy_function = copy2 , ignore_dangling_symlinks = False , dirs_exist_ok = False ) ¶ Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. All intermediate directories needed to c...た。 shutil. rmtree ( path , ignore_errors = False , onerror = None , * , onexc = None , dir_fd = None ) ¶ Delete an entire directory tree; path must point to a directory (but not a symbolic link to a directory). If ignore_errors is true, errors resulting...meter it receives is the tuple returned from sys.exc_info() . 参考 rmtree の例 for an example of handling the removal of a directory tree that contains read-only files. 引数 path , dir_fd を指定して 監査イベント shutil.rmtree を送出します。 バージョン 3.3... - https://man.mtool.work/python/3.14/library/shutil.html