Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #617 from sharelatex/hb-check-for-folders-clientside
Browse files Browse the repository at this point in the history
Add function to check for existence of folders
  • Loading branch information
Hugh-OBrien committed Jun 4, 2018
2 parents 52c7685 + d869d94 commit c096dc7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/coffee/ide/file-tree/FileTreeManager.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ define [

return null

projectContainsFolder: () ->
for entity in @$scope.rootFolder.children
return true if entity.type == 'folder'
return false

existsInThisFolder: (folder, name) ->
for entity in folder?.children or []
return true if entity.name is name
Expand Down

0 comments on commit c096dc7

Please sign in to comment.