Exemplo n.º 1
0
 def copy(self, src, dst, overwrite=False, chunk_size=16384):
     if self.wrapped_fs.readonly:          
         raise errors.UnsupportedError('read only filesystem')
     
     # FIXME: Workaround because isfile() not exists on _TahoeFS
     FS.copy(self, src, dst, overwrite, chunk_size)
Exemplo n.º 2
0
 def copy(self, src, dst, overwrite=False, chunk_size=16384):
     if self.getmeta("read_only"):
         raise errors.UnsupportedError('read only filesystem')
     # FIXME: this is out of date; how to do native tahoe copy?
     # FIXME: Workaround because isfile() not exists on _TahoeLAFS
     FS.copy(self, src, dst, overwrite, chunk_size)
Exemplo n.º 3
0
        """ select """
        v.voiceOutput("Select item")
        selection = v.selectFrom(fs.scanDir())
        if selection:
            selectedItem = fs.currentDir + selection
    elif key == 'x':
        """ move """
        if selectedItem:
            fs.move(selectedItem)
            selectedItem = ''
        else:
            v.voiceOutput("Please select item first")
    elif key == 'c':
        """ copy """
        if selectedItem:
            fs.copy(selectedItem)
            selectedItem = ''
        else:
            v.voiceOutput("Please select item first")
    elif key == 'i':
        """ get properties """
        item = v.selectFrom(fs.scanDir())
        if item:
            fs.getInfo(item)

    elif key == 'f':
        """ find . -name """
        while True:
            v.voiceOutput("Enter name to find")
            filename = raw_input("Enter itemname: ")
            if filename: