Advertisement
Guest User

Untitled

a guest
Jan 9th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.36 KB | None | 0 0
  1. ["photos/1.jpg", "photos/2.jpg", "photos/sub/3.png", "file.jpg"]
  2.  
  3. =>
  4.  
  5. [{
  6.   name: 'photos',
  7.   type: 'folder',
  8.   children: [
  9.     {
  10.       name: 'sub',
  11.       type: 'folder',
  12.       children: [
  13.         { name: '3', type: 'file' }
  14.       ]
  15.     },
  16.     { name: '1.jpg', type: 'file' },
  17.     { name: '2.jpg', type: 'file' }
  18. },
  19. { name: 'file.jpg', type: 'file' }]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement