Filler Method

Fills the buffer with information about a directory entry.

function Filler(FillerContext: Int64; Name: String; Ino: Int64; Mode: Integer; Uid: Integer; Gid: Integer; LinkCount: Integer; Size: Int64; ATime: TDateTime; MTime: TDateTime; CTime: TDateTime): Integer;

Remarks

Use the Filler method from the ReadDir event handler to fill the buffer with the information about a file.

Call the method in a loop to add multiple entries.

The FillerContext parameter is passed to the ReadDir event handler and must be passed by the event handler to this method without modifications.

The Name parameter should contain the name of the directory entry.

The Ino parameter should be set to the ID of the file, which must be unique within a filesystem. Ino is optional on Windows and is ignored on Linux, where FUSE internally generates internal IDs.

The Mode parameter is a combination of bit flags.
Windows: Mode may include 0x4000 (S_IFDIR) to indicate that the entry is a directory, and must include either 0x80 (S_IWUSR) to indicate a file that can be read and written or 0x100 (S_IRUSR) to indicate a read-only file. Other flags are ignored.
Linux: Mode may include any appropriate file mode flags. See inode(7) for more information.

Windows: The Uid, Gid, and LinkCount parameters are not used.
Linux: The Uid and Gid parameters must be set to the owner's user ID and group ID respectively. LinkCount should be set to the number of hard links that the file has (which usually is 1).

Size must be set to the size of the file's data. For directories, the parameter should be set to 0.

ATime, MTime, CTime: Set respectively to the Access Time, Modification Time, and Creation Time values of the file or directory. All date/time parameters in the component are specified in UTC.

To convert Unix time to the format, suitable for this function, use the UnixTimeToFileTime method.

Windows: Any non-applicable time values can be set to January 1, 1601 00:00:00 UTC.

The method returns 0 on success and an error code otherwise.

Note: This method cannot be called within events.

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS FUSE 2020 Delphi Edition - Version 20.0 [Build 8348]