def _ls
      if @target.directory?
        files = @target.files.reject { |child| perms_for(child)[:hidden] }

        @response[:list] = files.map { |e| e.basename.to_s }.compact
      else
        @response[:error] = "Directory does not exist"
      end

    end
def _ls
      if @target.directory?
        files = @target.files.reject { |child| perms_for(child)[:hidden] }

        @response[:list] = files.map { |e| e.basename.to_s }.compact
      else
        @response[:error] = "Directory does not exist"
      end

    end
of open