Not all file systems supports these flags and there isn't a clear indication on how this should be handled in AmigaOS. For example, when copying a file the file should not retain the same group/user permissions as the original file, it should probably have more permissions that the original file. In essence the file should change ownership to the current user. If the original file was write protected, it's not natural that the copy is as well.
A few more examples:
- Moving a file from a partition that supports them to another that don't and then back.
- Copying or moving a file from a samba share or ftp site (ftp mount), then the host system has user and group settings that are most likely not relevant locally
If someone wrote up a specification on how these flags should be handled on AmigaOS in all thinkable and unthinkable situations then I'd be happy to implement them. Note that the specification must be generic since I won't write special code for specific file systems, the Filer only sees devices/assigns/directories and files regardless of the underlying file systems.
Whilst I can't begin to write such a spec, in the absense of one I suggest that you follow the pattern set by the existing file copying utilities.
The default's for any system are C:COPY and Workbench
C:COPY appears to copy all protection bits by default and has the NOPRO swicth which ignores all protection bits setting -r-w --- --- in the destination file. Workbench copies all protection bits unaltered, if there an option to change that I can't find it.
DOpus4 has aswitch in the settings to switch on or off copying of protection bits. I have this on (not sure if it's the default)
DOpus5 on my a1200 always copied protection bits, I particularly remember that it's FTPmount equivalent would preserve them when copying to the ftp server, which is a much missed aspect of FTPMount that requires me to use ftp (the prgram) to upload CGI scripts.
All seem to discard the user and group id settings though, (which means I have to remember to set the user to 1000 for any file I want to access correcty from linux )
DOpus5 on my a1200 always copied protection bits, I particularly remember that it's FTPmount equivalent would preserve them when copying to the ftp server, which is a much missed aspect of FTPMount that requires me to use ftp (the prgram) to upload CGI scripts.
I don't have time to work on FTPMount currently but any feedback is good to take. Can you elaborate on this please ? I'm note sure what you miss in FTPMount that an ftp client is offering you. BTW FTPMount has a bugtracker here please feel free to add remarks there.
No it was a conscious choice inside the permission copying code. I just didn't know whether those flags was actually used/required by any application.
Fair enough. I think few "pure" amiga applications will take any notice of the user / groups permsisions at present as we don't have a multiuser evironment in the windows / unix sense. But may unix ports will, I know perl gets upset if T: doesn't have completely open permisions (drwxrwxrwx in unix terms) and the thing that led me to discover this behaviour was that blender check of S_IXOTH in the call to stat when looking for yafray and so once I'd copied yafray to it's final destination with filer blender could not longer see it. (I've fixed that in blender, but I'd bet many other apps do a similar thing) gcc creates all amiga apps with the equivalent of chmods 755.
. Dopus#? may be considered broken but I would hope that COPY and Workbench might be considered refrence implmentations....
The upshot is that I think having the option to copy user/group file permisions were they exist would make filer considerably more helpful to developers having to work with posix based tool chains.
As an aside from that I just recopied my SDK using C:COPY and it didn't copy any of the links, so I still had a broken SDK! Seting COPYLINKS created new files rather than links at the destinations, which works but is less desirable. Looks like the only way to move the sdk easily is to archive it with tar or maybe lha and unpack it in the new destination!
You have to provide the whole crash log. (like on crashlog.os4depot.net). You have to run the debug version or the information in the crash log won't help. You have to describe exactly what you are trying to do. What you have selected, what buttons you click on, in what order, file system used, what the file system structure looks like and so on.
What you think about adding "leave out" option ? Today miss it a bit, and becouse of it again open these Wb windowses , try to found my icon, and do "leave out" by wb.
@orgin I don't think you need an API to leave-out icons, as the "left out" files just have their paths listed in a special plain text file at the root of the volume.
@orgin I would have agreed if the data format was even slightly complicated, but it is so simple (and unchanged since at least OS3.0) that I don't see the problem: Implementing it would be pretty easy, and if it DOES change then little work will have been lost.
I guess someone could also submit an API proposal to Hyperion... And one could even write a library with that functionality, if you were scared of being future-proof, although I feel that would be unnecessarily complex - better to implement the API internally & just remove the implementation when/if Hyperion added it to OS4.
You could even argue that the data format *is* the API, and Hyperion simply need to document it!
#270 That tells me nothing... You have to describe exactly what you are trying to do. What you have selected, what buttons you click on, in what order, file system used, what the file system structure looks like and so on. 'MP3s' = directory of 100 mp3s. I'm not using buttons! Highlight the DIR in Filer and MENU > FIND "#?Dreams#?" This returns a couple files --OK, but if go up a directory level, then FILER does GRs. ? So. if I highlight all dirctories that don't have sub directories, FIND works OK. ? It sounds like 'recursive directory search' has bug or wasn't engineered to work like the other file managers do. Which? If you got a better way to find a song in FILER, please do tell.