paraworld.file.RenameFile

Description

修改指定文件的文件名

Parameters

Required Name Type Description
required sessionKey string 用户凭证。
filePath int 需要修改的文件的逻辑地址
newFilePath string 新的逻辑地址

Example Return XML

<msg xmlns="">
        <isSuccess type="boolean">True</isSuccess>
</msg>

Error Codes

当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录 409:文件夹已存在 410:文件已存在

Test Cases

case 1

Input:

{

        ["id"]=3,

        ["filePath"]="upload/2008-5-12/4ea5b380-e071-4caf-9f94-c47c660928cd.jpg",

        ["newFilePath"]="upload/2008-5-12/newPath.jpg",

}

Result:

{

       ["isSuccess"]=true,

}
Topic revision: r4 - 2008-05-13 - 11:42:13 - CaoYF
Main.Paraworld_file_RenameFile moved from Main.Paraworld_UserFile_Rename on 2008-05-10 - 05:28 by LiXizhi - put it back
 

ParaEngine Developer Network

This site is powered by the TWiki collaboration platformCopyright © 2004-2008 ParaEngine Corporation
Ideas, requests, problems regarding ParaEngine platform Send feedback