Implemented import of files/folders

Helps the use case of #1194

review: @devoncarew