You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Allows editing and creating directories in file storage.

description

GET  /file_storage/modify_directory.php?company=RTI_COMPANYKEY&import=IMPORTKEY&action=action

parameters

parameterdescriptiontypehintmandatory
companyRTI company keystring
yes
importRTI import keystring
yes
actionaction typestring

possible values:

  • NEW: create new directory
  • RENAME: rename existing directory
  • MOVE: move directory
  • DELETE: delete directory, contained files will be moved to bin
yes
source_pathpath to directorystring

format: directory/sub directory/.../affected directory (slash-separated)

Root does not have to be specified. To move the file to root directory, just leave the param empty

nicht relevant bei Aktionstyp NEW

(yes)


namedirectory namestring

name of directory

only for action types

  • NEW (= name of new folder)
  • RENAME (= new name of folder)
(yes)
destination_pathpath to directory

format: directory/sub directory/.../affected directory (slash-separated)

Root does not have to be specified. To move the file to root directory, just leave the param empty

only for action types

  • NEW (= path to parent directory )
  • MOVE (=path to new parent directory)
(yes)
recursive
string

Flag if given destination_path has to exist. Relevant for action types

  • NEW
  • MOVE

If set to 'true', directories specified in destination path that do not exist will be created first before executing the actual action. Is false by default (this will instead lead to UNKNOWN_DESTINATION_PATH error if you try to access a non-existing path).

no


System directories can not be removed.

Root can not be renamed.

return

On success you will receive "OK". On missing parameters or errors you will receive "ERROR:description".

examples

create new directory

http://map.yellowfox.de/rti/file_storage/modify_directory.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&action=NEW&destination_path=images&name=Fotos


set new name

http://map.yellowfox.de/rti/file_storage/modify_directory.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&action=RENAME&source_path=images&name=new name


move directory

http://map.yellowfox.de/rti/file_storage/modify_directory.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&action=MOVE&destination_path=images,photos&source_path=memories

  • No labels