Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Promise.all(
- $scope.temps.filter((v) => !!v.model && v.model.type === 'dir').map(() => {
- return $scope.apiMiddleware.getFiles(v.model.realPath + (v.model.realPath.length > 0 ? '/' : '') + v.model.name).then(function(response) {
- if (!!response.result) {
- return response.result.filter((fv) => fv.type === 'file')
- } else {
- return []; // pysyy tulokset samana tyyppinä
- }
- });
- })
- ).then(() => {
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement