書き比べスクリプト・リファレンス

Python

ファイル、ディレクトリの有無を調べる

os.path.exists(filepath)
import os.path

os.path.isdir(path)

ディレクトリの一覧を取得

 import os.path
 
 os.path.listdir(path)

PHP

bool file_exists( string filename )
filenameで指定されたファイルまたはディレクトリがあれば、trueを返す。


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-10-13 (木) 15:56:47