Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/71#discussion_r101534603
  
    --- Diff: aria/storage/filesystem_rapi.py ---
    @@ -151,3 +149,17 @@ def upload(self, entry_id, source, path=None, **_):
                 shutil.copy2(source, destination)
             else:
                 dir_util.copy_tree(source, destination)                        
               # pylint: disable=no-member
    +
    +    def delete(self, entry_id, path=None, **_):
    +        """
    +        Deletes a file system storage resource.
    +
    +        :param str entry_id: the id of the entry.
    +        :param str path: a path to delete relative to the root of the 
entry (otherwise all).
    +        """
    +        destination = os.path.join(self.directory, self.name, entry_id, 
path or '')
    +        if os.path.exists(destination):
    --- End diff --
    
    return True if succesfull 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to