Online Documents
繁體中文
繁體中文
  • First Launch Experience
  • How to Train EMILY?
  • Simple Web Automation
  • Web Automation Tools
  • Web Automation Processor
  • User Fill
  • Workspace Script
  • File Exporter
  • File Enumerator
  • EXCEL Processor
  • EXCEL Analyzer
  • EXCEL Writer
  • EXCEL Filler
  • CSV Creator
  • PowerShell
  • PDF Analyzer
  • Mail Sender
  • Mail Reader
  • Exchange Mail Sender
  • Exchange Mail Reader
  • HTTP Analyzer
  • Command Line
  • DOCX Templater
  • SQL Executor
  • Desktop Automation (DA)
  • SFTP
  • JSON API Server
  • Chart
  • DOCX2HTML
  • Folder Processor
  • Google Drive
  • Google Sheets
  • Google OCR
  • Google NLU
  • Azure Form Recognizer
  • Anti-Captcha
  • ChatGPT
  • Gemini
  • Schedule Trigger
  • Mail Trigger
  • File Trigger
  • API Trigger
  • Protect Text
  • Flexibility & Security
  • Announcement
    • Version Releases
    • Third Party Notice
Powered by GitBook
On this page
  • FOLDER
  • input 輸入物件
  • output 輸出物件
  • api 物件

Folder Processor

管理指定資料夾

FOLDER

指定的資料夾,點擊 PICK 按鈕指定或使用 %FILENAME% 變數。

input 輸入物件

在 input 物件中的每個 key 為工作資料夾中的一個 TXT 檔案名稱(不包含副檔名),每個 value 為該檔案的文字內容。

output 輸出物件

加入 output 物件中的每個 key 將被輸出成工作資料夾中的一個 TXT 檔案,檔案名稱即為 key,文字內容為該 key 相對應的 value。

api 物件

提供非同步函式:api.files(), api.folders(), api.stat(name), api.rename(oldname, newname), api.remove(name), api.mkdir(dirname)

// 列出指定資料夾中的檔案
let files = await api.files()
console.log(files)

// 列出指定資料夾中的資料夾
let folders = await api.folders()
console.log(folders)

// 讀取指定資料夾中的檔案或子資料夾的各類時戳資訊,例如檔案建立時間、修改時間、最近存取時間
let info = await api.stat('subfolder')
console.log(info)

// 修改指定資料夾中的檔案
api.rename('report1.pdf', 'report2.pdf')

// 刪除指定資料夾中的檔案
api.remove('price.pdf')

// 在指定資料夾中建立子資料夾
api.mkdir('newfolder')
PreviousDOCX2HTMLNextGoogle Drive

Last updated 2 years ago