Differences
This shows you the differences between the selected revisions of the page.
scriptcommand_rmdir 2011-11-10 | scriptcommand_rmdir 2020-05-29 (current) | ||
Line 1: | Line 1: | ||
- | ====== rmdir ====== | + | ====== rmdir command ====== |
Removes one or more remote directories. | Removes one or more remote directories. | ||
+ | |||
+ | ===== Syntax ===== | ||
rmdir <directory> [ <directory2> ... ] | rmdir <directory> [ <directory2> ... ] | ||
- | If [[ui_login_environment#recycle_bin|remote recycle bin]] is configured, moves directory to the bin instead of deleting it. | + | ===== [[remarks]] Remarks ===== |
+ | |||
+ | If [[ui_login_recycle_bin|remote recycle bin]] is configured, moves directory to the bin instead of deleting it. | ||
+ | |||
+ | In general the command can remove empty directories only. To remove non-empty directories recursively, use ''[[scriptcommand_rm|rm]]''. | ||
XML log element: ''[[logging_xml#rm|rm]]'' | XML log element: ''[[logging_xml#rm|rm]]'' | ||
Line 13: | Line 19: | ||
</code> | </code> | ||
+ | ===== Converting to .NET Assembly ===== | ||
+ | When [[library_from_script|converting script to .NET Assembly]], map ''rmdir'' command to ''[[library_session_removefiles|Session.RemoveFiles]]'' method. | ||
+ | |||
+ | Parameters mapping: Command parameter ''directory'' maps to method parameter ''path''. When multiple directory parameters are used, you need to call ''Session.RemoveFiles'' multiple times. You have to [[library_from_script#paths|convert relative paths to absolute paths]]. | ||