Re: [Bashburn-info] new filemanager
Brought to you by:
bashburn
From: Nick W. <ni...@uk...> - 2008-10-14 07:29:00
|
On Mon, 13 Oct 2008 23:40:28 +0200 Anders Lindén <and...@gm...> wrote: > I committed a new version of the file manager that displays files in > three columns, marked with [d] or [f] depending on whether they are > files or directories. I also added a delete mechanism that works the > same way as the file linking one. The difference is that the delete > function is 'locked' to BBBURNDIR. > > Anyone has a good idea on how to implement a page system? Let's say > we want to show a maximum of 16 entries per page (Three columns, four > rows). > > Anyway, try it out and let me know what you think. > I have added a small fix - the column count logic was wrong, and every 4th file/dir wasn't being printed to stdout. Another issue is trying to delete directories. rm <filename> doesn't work here, of course. ==== File(s): 12 rm: cannot remove `/home/nick/burn/test': Is a directory 12 -> /home/nick/burn/test deleted. Files deleted from /home/nick/burn ==== One way is to check if dir is emtpy and use 'rmdir', or the real dangourous way if it isn't empty is 'rm -[r]f'. Perhaps it easier to ask used to empty the directory first, as I wouldn't like to see 'rm -[r]f' in the code. Nick -- Free Software Foundation Associate Member 5508 |