|
| From: | Jose E. Marchesi |
| Subject: | Re: [RFC] redoxfs.pk: Pickle for RedoxFS file system |
| Date: | Fri, 18 Dec 2020 18:02:01 +0100 |
| User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> method isdir = int:
> {
> return (mode & RedoxFS_MODE_DIR) == RedoxFS_MODE_DIR;
> }
> method isfile = int:
> {
> return (mode & RedoxFS_MODE_FILE) == RedoxFS_MODE_FILE;
> }
> method issymlink = int:
> {
> return (mode & RedoxFS_MODE_SYMLINK) == RedoxFS_MODE_SYMLINK;
> }
Aren't the DIR and FILE flags exclusive? In that case, the isdir and
isfile methods can be simplified like:
method isdir = int:
{
return mode & RedoxFS_MODE_DIR;
}
I assume you can have symlinks to both files and directories in that
filesystem...
| [Prev in Thread] | Current Thread | [Next in Thread] |