![]() ![]() Return lastError End If End If End Try Next files. ErrorNumber 0 Then If continueIfErrors Then If returnCode = 0 Then returnCode = lastError Else // Return the error code if any. Remove Catch error As IOException If error. Add ( item ) End If End If Next // Now remove the files For Each file As FolderItem In files Try file. This is faster than collecting them in reverse order and removing them right away! For Each item As FolderItem In theFolder. Exists Then Return 0 End If // Collect the folder‘s contents first. You can set these permissions by assigning the octal value to the Permissions property, i.e.,įunction RemoveEntireFolder ( theFolder As FolderItem, continueIfErrors As Boolean = False ) As Integer // Returns an error code if it fails, or zero if the folder was removed successfully Var returnCode, lastError As Integer Var files (), folders () As FolderItem If theFolder = Nil Or Not theFolder. When referring to an octal number in Xojo, you have to prefix it with the " &o". ![]() Each digit can take on the following values:įor example, the the octal value "764" is interpreted as follows: The code for each digit is computed using the following values:įor each digit, the permissions are expressed by adding up the values. The digits correspond to the permissions of the FolderItem owner, the owning group, and other users not in the owning group, in that order. Permissions is represented as a three-digit numeric code (in octal or base 8), in which each digit ranges from 0 to 7. You can get and set the permissions as an octal Integer or you can get and set the permissions via the properties of the Permissions class. This property is not currently supported for Android.įor web apps, it is important to ensure that you set permissions correctly for any files that you create on the web server and later intend to modify, write or delete. ![]() Reporting bugs and making feature requests. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |