First, let's introduce the rmdir () function.
PHP rmdir () function
rmdir-Delete Empty Directory
Grammar:
BOOL RmDir (String $dirname [, Resource $context])
An attempt was made to delete the directory specified by DirName. The directory must be
As we all know, the PHP rmdir () function is used to delete empty directories, but if you want to delete a non-empty directory, we must delete the files or subdirectories in the non-empty directory, this article introduces how PHP uses recursive
Linux Command learning Summary: rmdir, linuxrmdir
Command introduction:
This command is used to delete an empty directory. If the directory is not empty, an error occurs. You can use rm to delete files in the directory and then use rmdir to
PHP rmdir () functionRmdir― Delete Empty DirectoryGrammar:BOOL RmDir (String $dirname [, Resource $context])An attempt was made to delete the directory specified by DirName. The directory must be empty and have the appropriate permissions. Failure
The rmdir () function deletes an empty directory.
Cases
The code is as follows
Copy Code
$path = "Images";if (!rmdir ($path)){Echo ("Could not remove $path");}Else{Echo ' Delete directory failed because images is not
Linux rmdir command
Delete files and directories on the Linux Command Line. We have discussed the use of the rm command. However, there is another related command line tool dedicated to directory deletion. This tool is rmdir. In this tutorial, we
Introduction to Commands:
The rmdir command is used to delete an empty directory and an error occurs if the directory is not empty. After you can use RM to delete a file in a directory, use RmDir to delete the directory. You can also use RM-RF
One linux Command every day (6): rmdir command link: One linux Command every day (1): ls command http://www.bkjia.com/ OS /210210/163049.html#linuxlinuxcommand every day (2): cd command serial (3 ): pwd command kernel (4): mkdir command
Learn about Linux commands today: the RmDir command. RmDir is a commonly used command, the function of which is to delete an empty directory before a directory is deleted must be empty. (Note that the Rm–r dir command can be used instead of rmdir,
Linux Command: rmdir command to learn and use, linuxrmdir
Today, I want to learn about the command rmdir in linux. Rmdir is a common command used to delete an empty directory. A directory must be empty before it is deleted. (Note that the rm-rdir
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.