Differences
This shows you the differences between the selected revisions of the page.
| scriptcommand_rmdir 2012-09-24 | 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]]''. | In general the command can remove empty directories only. To remove non-empty directories recursively, use ''[[scriptcommand_rm|rm]]''. | ||
| Line 15: | 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]]. | ||