(file)
| 244 | let _treeRefreshFolder = ''; |
| 245 | |
| 246 | function getRelativePathForFile(file) { |
| 247 | if (!file || typeof file !== 'object') return ''; |
| 248 | return ( |
| 249 | file.relativePath || |
| 250 | file.webkitRelativePath || |
| 251 | file.customRelativePath || |
| 252 | (file.file && (file.file.webkitRelativePath || file.file.customRelativePath)) || |
| 253 | '' |
| 254 | ); |
| 255 | } |
| 256 | |
| 257 | function hasFolderPaths(files) { |
| 258 | if (!Array.isArray(files)) return false; |