forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete-folder.lcdoc
More file actions
67 lines (47 loc) · 2.04 KB
/
delete-folder.lcdoc
File metadata and controls
67 lines (47 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Name: delete folder
Synonyms: clear folder, delete directory, clear directory
Type: command
Syntax: delete folder <pathname>
Summary:
Removes a <folder> from the user's system.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Security: disk
Example:
delete folder "/bin/badprogram/"
Example:
delete folder "../Last Version"
Example:
answer folder "Choose the folder you wish to delete."
put it into tChosenFolder
delete folder tChosenFolder
Parameters:
pathName:
Specifies the name and location of the folder. If you specify a name but
not a location, LiveCode assumes the folder is in the defaultFolder.
Description:
Use the <delete folder> <command> to clean up by removing a <folder> you
created.
If a folder contains any files or folders, it cannot be deleted with the
<delete folder> <command> until the items inside it are deleted or
moved. To delete a folder that is not empty, use the <revDeleteFolder>
<command>.
This command can also be used to remove folders your stack did not
create. Of course, a stack should not remove folders it did not create
without obtaining explicit confirmation from the user.
>*Note:* iOS imposes strict controls over what you can and cannot
> access. Each application in iOS is stored in its own 'sandbox' folder
> (referred to as the home folder). An application is free to read and
> write files within this folder and its descendants, but it is not
> allowed to access anything outside of the 'sandbox'.
>*Note:* An Android application is installed on the phone in the form of
> its zip package. This means that any assets that are included are not
> available as discrete files in the native filesystem. In order to
> manage this the engine essentially 'virtualizes' the asset files you
> include, allowing (read-only) manipulation with all the standard
> LiveCode file and folder handling syntax.
References: revDeleteFolder (command), delete URL (command),
delete (command), revMoveFolder (command), specialFolderPath (function),
command (glossary), folder (glossary)
Tags: file system