top of page
- API -
fileList = reaper.AZ_P4_SyncFiles(workspace, depotPath, revision, extension)
- API Detail-
▼Input value
- workspace(string) : workspace name
- depotPath(string) : depot path
- revision(Int) : revision (optional, -1 is latest)
- extension(String) : extension (optional)
▼Output value
- fileList(StringArray) : list of output files
※ To use this API, you must install Perforce P4.
※ You must create a workspace beforehand.
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_GOLD")
url = -- Perforce server URL
userName = -- User name
password = -- Password
workspace = -- Workspace name
depotPath = -- Path on the depot
isConnected = reaper.AZ_P4_Connect(url, userName, password)
Msg("Connection: " .. tostring(isConnected))
if isConnected then
fileList = reaper.AZ_P4_SyncFiles(workspace, depotPath, -1, "wav")
ShowObject(fileList)
reaper.AZ_P4_Disconnect()
end
Perforce
AZ_P4_SyncFiles
Supported versions:
1.3.0
onwards
Sync files from the depot to the workspace

bottom of page








