Need An Email Marketing Solution For All Of Your Customers?

Partner With VerticalResponse!

moveFile


The moveFile() method moves a file within your Library from one location to another. A file move that would result in
the replacement of an existing file requires presence of the “force” argument.

Input

[vrtypens:moveFileArgs]

session_id [xsd:string] (required)
Your API session id.
source [xsd:string] (required)
Library path to file to move (e.g., “/logos/fall.jpg”).
target [xsd:string] (required)
Library path to destination of move (e.g., “/logos/fall/fall_2007.jpg”).
force [xsd:boolean]
Whether to prevent a fault from being thrown when the move would result in a file being overwritten.

Output

[xsd:boolean]

Examples

Perl

$vrapi->moveFile( {
    session_id => $sid,
    source     => '/foo/bar/baz.jpg',
    target     => '/baz/bar/quux.jpg',
    force      => 1,
} );

PHP

$vrapi->moveFile( array(
    'session_id' => $sid,
    'source'     => '/foo/bar/baz.jpg',
    'target'     => '/baz/bar/quux.jpg',
    'force'      => 1,
) );