@@ -208,10 +208,10 @@ class Directory : public File {
208208  virtual  int  insertMove (const  std::string& name,
209209                         std::shared_ptr<File> file) = 0;
210210
211-   //  Remove the file with the given name, returning `true`  on success or if the
212-   //  child has already been removed or returning `false` if the child cannot be 
213-   //  removed.
214-   virtual  bool  removeChild (const  std::string& name) = 0;
211+   //  Remove the file with the given name. Returns zero  on success or if the
212+   //  child has already been removed and otherwise returns a negative error code 
213+   //  if the child cannot be  removed.
214+   virtual  int  removeChild (const  std::string& name) = 0;
215215
216216  //  The number of entries in this directory.
217217  virtual  size_t  getNumEntries () = 0;
@@ -377,10 +377,10 @@ class Directory::Handle : public File::Handle {
377377  [[nodiscard]] int  insertMove (const  std::string& name,
378378                               std::shared_ptr<File> file);
379379
380-   //  Remove the file with the given name, returning `true`  on success or if the
381-   //  vhild  has already been removed or returning `false` if the child cannot be 
382-   //  removed.
383-   bool  removeChild (const  std::string& name);
380+   //  Remove the file with the given name. Returns zero  on success or if the
381+   //  child  has already been removed and otherwise returns a negative error code 
382+   //  if the child cannot be  removed.
383+   [[nodiscard]]  int  removeChild (const  std::string& name);
384384
385385  std::string getName (std::shared_ptr<File> file);
386386
0 commit comments