Exemplo n.º 1
0
    def on_copy_url(self, *args):

        transfer = next(iter(self.selected_transfers), None)

        if transfer:
            copy_file_url(transfer.user, transfer.filename,
                          self.frame.clipboard)
Exemplo n.º 2
0
    def on_copy_dir_url(self, *args):

        if self.selected_folder is None:
            return

        path = self.selected_folder + '\\'
        copy_file_url(self.user, path)
Exemplo n.º 3
0
    def on_copy_url(self, *args):

        if self.selected_files:
            path = "\\".join(
                [self.selected_folder,
                 next(iter(self.selected_files))])
            copy_file_url(self.user, path)
Exemplo n.º 4
0
    def on_copy_dir_url(self, *args):

        transfer = next(iter(self.selected_transfers), None)

        if transfer:
            copy_file_url(transfer.user,
                          transfer.filename.rsplit('\\', 1)[0] + '\\',
                          self.frame.clipboard)
Exemplo n.º 5
0
    def on_copy_dir_url(self, *args):

        if self.selected_results:
            user, path = self.selected_results[0][:2]
            copy_file_url(user,
                          path.rsplit('\\', 1)[0] + '\\', self.frame.clipboard)
Exemplo n.º 6
0
    def on_copy_url(self, *args):

        if self.selected_results:
            user, path = self.selected_results[0][:2]
            copy_file_url(user, path, self.frame.clipboard)
Exemplo n.º 7
0
    def on_copy_url(self, *args):

        if self.selected_results:
            user, path = self.selected_results[0][:2]
            copy_file_url(user, path)