top of page
- API -

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

- API Detail-

▼入力値

  • workspace(string) : ワークスペース名

  • toDir(string) : 出力先フォルダ

  • depotPath(string) : デポのパス

  • fileWriteMode(integer) : 出力方法(任意 デフォルト : 0)

  • revision(integer) : リビジョン(任意 デフォルト : -1)

  • excludeList(StringArray) : 除外リスト(任意 デフォルト : 空)

  • isRegex(boolean) : 正規表現かどうか(任意 デフォルト : true)

▼出力値

  • fileList(StringArray) : 出力ファイル一覧

※本APIを使用する場合、Perforce P4をインストールする必要があります

※ワークスペースを事前に作成しておく必要があります。

※fileWriteModeに設定する値はAZ_FileWriteModeに対応します

- 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

デポのファイルを指定フォルダに出力

bottom of page