Method: FFI::Libfuse::FuseOperations#create

Defined in:
lib/ffi/libfuse/fuse_operations.rb

#create(path, mode, fuse_file_info) ⇒ Integer

This method is abstract.

Create and open a file

If the file does not exist, first create it with the specified mode, and then open it.

If this method is not implemented or under Linux kernel versions earlier than 2.6.15, the mknod() and open() methods will be called instead.

Parameters:

  • path (String)
  • mode (Integer)
  • fuse_file_info (FuseFileInfo)

Returns:

  • (Integer)

    0 for success or -ve errno



# File 'lib/ffi/libfuse/fuse_operations.rb', line 582