top of page
- API -

fileList = reaper.AZ_P4_ExportToDirectory(workspace, toDir, depotPath, fileWriteMode, revision, excludeList, isRegex)

- API Detail-

▼Input values

  • workspace(string): workspace name

  • toDir(string): output folder

  • depotPath(string): depot path

  • fileWriteMode(integer): output method (optional, default: 0)

  • changeListID(integer): changelist ID (optional, -1 for latest)

  • excludeList(StringArray): exclusion list (optional, default: empty)

  • isRegex(boolean): whether to use regex (optional, default: true)

▼Output values

  • fileList(StringArray): list of output files

*To use this API, you must have Perforce P4 installed.

*You must create the workspace in advance.

*The values to set for fileWriteMode areAZ_FileWriteModecorresponds to

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())                

require("reaper_AZSTOKE_GOLD")                

                

url = -- perforceサーバーのurl            

userName = --ユーザー名 

password = --パスワード


workspace = -- ワークスペース名

depotPath = -- デポ上のパス


if reaper.AZ_P4_Connect(url, userName, password)  then

  

    fileList = reaper.AZ_P4_ExportToDirectory(workspace, "D:\\test\\export", depotPath, reaper.AZ_FileWriteMode_Overwrite(), -1)


    ShowObject(fileList)


    reaper.AZ_P4_Disconnect()


end

Perforce

AZ_P4_ExportToDirectory

Supported versions:

1.3.0

onwards

Export depot files to a specified folder

bottom of page