Tags
19 pages
檔案處理
【Bash 檔案處理 #2】bash 確認檔案存在 (bash if file exist)
【C++ 檔案處理 #1】C 語法的檔案讀取 istream (header: fstream, std::ifstream), 與 iostream 直接比較
【Linux 檔案處理 #8】realpath - 取得檔案完整「絕對路徑」,basename 取得檔名,用 pwd 取得現在 terminal 路徑
【Bash 檔案處理 #1】Linux terminal 取得 (資料夾內) 所有的檔案名稱 (bash get all file, bash glob, parse file)
【Python 檔案處理 #7】python 移除資料夾範例 rmdir shutil.rmtree()
【Python 檔案處理 #6】python 建立資料夾範例 mkdir os.makedirs() (內附範例程式碼,可以複製直接套用) sample code
【Python 檔案處理 #5】python 開關檔範例 與 程式模板 with open / file open (updated: 2022/11/23)
【Python 檔案處理 #4】在 python 中利用 os.chmod 更改檔案的權限 (chmod 777)
