Sha256: d61d5cfc4c7f48924bbf426ca580ae5a86a2ca2d62bfa96bfeb8ae5108c1d703

Contents?: true

Size: 1.45 KB

Versions: 61

Compression:

Stored size: 1.45 KB

Contents

require 'apps/webdav/lib/vfs/properties'
require 'mime/types'

module Spider; module WebDAV; module VFS
    
    class Abstract
       
       def self.locking?
           false
       end
       
       def self.config
           {:MimeTypes => ::MIME::Types}
       end
       
       def locking?
           self.class.locking?
       end
       
       def map_path(path)
           path
       end
       
       def stream(filename, acc)
           raise NotImplementedError
       end
       
		def iostream(filename)
			stream(filename, "w+") {|f| yield f}
		end
		
		def ostream(filename)
			stream(filename, "w") {|f| yield f}
		end
		
		def istream(filename)
			stream(filename, "r") {|f| yield f}
		end
		
		def directory?(path)
		    raise NotImplementedError
	    end
	    
	    def mkdir(path)
	        raise NotImplementedError
        end
        
        def rm(path)
            raise NotImplementedError
        end
        
        def copy(src, dest, recursive=true)
            raise NotImplementedError
        end
        
        def mv(src, dst)
            raise NotImplementedError
        end
        
        def exists?(filename)
            raise NotImplementedError
        end
        
        def ls(path)
            raise NotImplementedError
        end
        
        def filtered?(path)
            return false
        end
        
		def properties(path)
			Properties.new(self, map_path(path))
		end 
        
    end
    
end; end; end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
spiderfw-1.0.1 apps/webdav/lib/vfs/abstract.rb
spiderfw-1.0.0 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.39 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.38 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.37 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.35 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.34 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.33 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.32 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.31 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.30 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.29 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.28 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.27 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.26 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.26.pre1 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.25 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.24 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.23 apps/webdav/lib/vfs/abstract.rb
spiderfw-0.6.22 apps/webdav/lib/vfs/abstract.rb