Logo3.145.10.68 
  News  Recent  Stats  Forums  Discord  Contact
  Menu
 Username

 Password


   Register here

 Main menu
   BBCode test
 
 Content
   About OpenAmiga
   Guidelines
   Definitions
   SVN Access
   Licenses
   IRC channel
   Links
   ToDo List
   List Content
 
 Projects
   Suggested (1)
   Open (11)
   Assigned (27)
   Pending (0)
   Finished (7)
   Closed (5)
 
 Categories
   Cli (2)
   Datatype (9)
   Drivers (3)
   System (15)
   Workbench (16)
  View comments
[View Project][View Threads]
Title:Workbench file lister
Synopsis:
Create a replacement file lister that resembles the ones used in Diropus and Diropus Magellan.
orgin[Done] Adding copy/paste buffer20090222 14:17
I'm going to post about my work on copy/paste functionality here.

The main idea is to implement the ability to copy/cut a set of selected entries and then paste it into another lister.

When issuing copy or cut the following will happen:

- A new file (ram:t/filer.clipboard) will be created
- The first line in the file will say either "COPY" or "CUT"
- The rest of the file will contain the full path to the selected entries
- each entry will also end up in the system clipboard allowing the user to paste a file list into a text editor.
- each entry is unselected in the file lister

When issuing a paste the following will happen:

- The filer will look for ram:t/filer.clipboard
- it will check if the first line is "COPY" or "CUT"
- It will read each following line and either copy or move to the path selected in the receiving file lister.

copy/cut/paste should be available in the main menu, by using keyboard shortcuts and in a right click popup menu.
Navigate: 1-4 
orginRe: Adding copy/paste buffer20090222 21:00
@orgin

I've added main menu entries for copy/cut/paste.

Copy/cut works. (except system clipboard stuff)

Paste only outputs what is to be copied/moved to stderr.
orginRe: Adding copy/paste buffer20090317 07:29
@orgin

Paste now actually works to a degree.

Files will be copied to the currently selected folder, without replacing any files.
orginRe: Adding copy/paste buffer20090319 06:54
@orgin

Paste now does recursive copying of folders as well, there's also a lot of error control and requesters that allows the user to replace, replace all, retry, skip, skip all, cancel etc (where appropriate) for each file.

The error checking for when copying the folder (not contents) needs some more error checking and requesters though before I can move on to move files.

I'm going to try to make 'move' smart by not copy/delete files if they are on the same partition. They will simply be moved.

During this whole ordeal I've noticed some peculiarities of amigaos and its file systems. For example, the permission flags are respected differently for different file systems and permissions are respected differently in different parts of the process for different file systems.

The copy/move functionality will not be able to handle soft/hard links in its first release. I'll have to figure out a way to deal with them later on. (I don't even know how to create them, even manually). For not they are treated as unreadable/unwriteable files.

I will not add a progress requester for the first release either. It's not very hard to do, but I want the copy/move released before going into that.
orginRe: Adding copy/paste buffer20090319 21:01
@orgin

I've added the missing error control for folder so c&p should work just fine now. You can download 53.8 HERE

Nice to have c&p done, I'm actually using the filer for ordinary tasks now :)

There might be problems in low memory/device full scenarios. But that can be fixed later(tm).
Navigate: 1-4 
Open Amiga project website, Created in 2008 by Björn Hagström