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

*Workspace must be created beforehand.

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_GOLD")


url = -- perforce server url

userName = -- username

password = -- password


workspace = -- workspace name

depotPath = -- path on depot


isConnected = reaper.AZ_P4_Connect(url, userName, password)

Msg("Connected: " .. 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