Sha256: 5ae8bf5eb438ca95186fdb7d7399cfc955796ab9ef3d10909afed2a77b92b2dc

Contents?: true

Size: 446 Bytes

Versions: 5

Compression:

Stored size: 446 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'ffi/libfuse'
require 'ffi/libfuse/filesystem/virtual_fs'

# A simple in-memory filesystem defined with hashes.
class MemoryFS < FFI::Libfuse::Filesystem::VirtualFS; end

# Set this to test multi-threading etc...
main_class = ENV.fetch('MEMORY_FS_SKIP_DEFAULT_ARGS', 'N') == 'Y' ? FFI::Libfuse::Main : FFI::Libfuse

exit(main_class.fuse_main(operations: MemoryFS.new)) if __FILE__ == $0

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffi-libfuse-0.4.1 sample/memory_fs.rb
ffi-libfuse-0.4.0 sample/memory_fs.rb
ffi-libfuse-0.3.4 sample/memory_fs.rb
ffi-libfuse-0.3.3 sample/memory_fs.rb
ffi-libfuse-0.1.0.rc20220550 sample/memory_fs.rb