File: const_7_file_station.py

package info (click to toggle)
python-synologydsm-api 2.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,380 kB
  • sloc: python: 27,239; sh: 25; makefile: 2
file content (175 lines) | stat: -rw-r--r-- 6,151 bytes parent folder | download | duplicates (2)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
"""DSM 7 SYNO.FileStation.List data."""

DSM_7_FILE_STATION_FOLDERS = {
    "data": {
        "offset": 0,
        "shares": [
            {
                "additional": {
                    "mount_point_type": "",
                    "owner": {"gid": 0, "group": "root", "uid": 0, "user": "root"},
                    "perm": {
                        "acl": {
                            "append": True,
                            "del": True,
                            "exec": True,
                            "read": True,
                            "write": True,
                        },
                        "acl_enable": True,
                        "adv_right": {
                            "disable_download": False,
                            "disable_list": False,
                            "disable_modify": False,
                        },
                        "is_acl_mode": True,
                        "is_share_readonly": False,
                        "posix": 777,
                        "share_right": "RW",
                    },
                    "real_path": "/volume1/backup",
                    "sync_share": False,
                    "time": {
                        "atime": 1736098543,
                        "crtime": 1669466095,
                        "ctime": 1736083030,
                        "mtime": 1733848814,
                    },
                    "volume_status": {
                        "freespace": 1553335107584,
                        "readonly": False,
                        "totalspace": 3821146505216,
                    },
                },
                "isdir": True,
                "name": "backup",
                "path": "/backup",
            },
            {
                "additional": {
                    "mount_point_type": "",
                    "owner": {
                        "gid": 100,
                        "group": "users",
                        "uid": 1046,
                        "user": "hass",
                    },
                    "perm": {
                        "acl": {
                            "append": True,
                            "del": True,
                            "exec": True,
                            "read": True,
                            "write": True,
                        },
                        "acl_enable": True,
                        "adv_right": {
                            "disable_download": False,
                            "disable_list": False,
                            "disable_modify": False,
                        },
                        "is_acl_mode": True,
                        "is_share_readonly": False,
                        "posix": 777,
                        "share_right": "RW",
                    },
                    "real_path": "/volume1/homes/hass",
                    "sync_share": False,
                    "time": {
                        "atime": 1736109199,
                        "crtime": 1643818781,
                        "ctime": 1736109071,
                        "mtime": 1736109071,
                    },
                    "volume_status": {
                        "freespace": 1553335107584,
                        "readonly": False,
                        "totalspace": 3821146505216,
                    },
                },
                "isdir": True,
                "name": "home",
                "path": "/home",
            },
        ],
        "total": 2,
    },
    "success": True,
}
DSM_7_FILE_STATION_FILES = {
    "data": {
        "files": [
            {
                "additional": {
                    "mount_point_type": "",
                    "owner": {
                        "gid": 105733,
                        "group": "SynologyPhotos",
                        "uid": 1046,
                        "user": "hass",
                    },
                    "perm": {
                        "acl": {
                            "append": True,
                            "del": True,
                            "exec": True,
                            "read": True,
                            "write": True,
                        },
                        "is_acl_mode": True,
                        "posix": 711,
                    },
                    "real_path": "/volume1/homes/hass/Photos",
                    "size": 50,
                    "time": {
                        "atime": 1735700476,
                        "crtime": 1723653032,
                        "ctime": 1723653464,
                        "mtime": 1723653464,
                    },
                    "type": "",
                },
                "isdir": True,
                "name": "Photos",
                "path": "/home/Photos",
            },
            {
                "additional": {
                    "mount_point_type": "",
                    "owner": {
                        "gid": 100,
                        "group": "users",
                        "uid": 1046,
                        "user": "hass",
                    },
                    "perm": {
                        "acl": {
                            "append": True,
                            "del": True,
                            "exec": True,
                            "read": True,
                            "write": True,
                        },
                        "is_acl_mode": True,
                        "posix": 711,
                    },
                    "real_path": "/volume1/homes/hass/3e57d06c.tar",
                    "size": 1660753920,
                    "time": {
                        "atime": 1736105132,
                        "crtime": 1736105128,
                        "ctime": 1736105132,
                        "mtime": 1736105132,
                    },
                    "type": "TAR",
                },
                "isdir": False,
                "name": "3e57d06c.tar",
                "path": "/home/3e57d06c.tar",
            },
        ],
        "offset": 0,
        "total": 2,
    },
    "success": True,
}