-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxbmcvfs.py
61 lines (44 loc) · 1.26 KB
/
xbmcvfs.py
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
#noinspection PyUnusedLocal
def copy(source, destination):
"""Copy file to destination, returns true/false.
source: string - file to copy.
destination: string - destination file
Example:
success = xbmcvfs.copy(source, destination)"""
return bool
#noinspection PyUnusedLocal
def delete(file):
"""Deletes a file.
file: string - file to delete
Example:
xbmcvfs.delete(file)"""
pass
#noinspection PyUnusedLocal
def rename(file, newFileName):
"""Renames a file, returns true/false.
file: string - file to rename
newFileName: string - new filename, including the full path
Example:
success = xbmcvfs.rename(file,newFileName)"""
return bool
#noinspection PyUnusedLocal
def mkdir(path):
"""Create a folder.
path: string - folder
Example:
success = xbmcfvs.mkdir(path)"""
return bool
#noinspection PyUnusedLocal
def rmdir(path):
"""Remove a folder.
path: string - folder
Example:
success = xbmcfvs.rmdir(path)"""
return bool
#noinspection PyUnusedLocal
def exists(path):
"""Checks for a file or folder existance, mimics Pythons os.path.exists()
path: string - file or folder
Example:
success = xbmcvfs.exists(path)"""
return bool