# File lib/fuse/rfusefs-fuse.rb, line 219 def ftruncate(ctx,path,offset,ffi) return wrap_context(ctx,__method__,path,offset,ffi) if ctx fh = ffi.fh if fh.raw @root.raw_truncate(path,offset,fh.raw) if (offset <= 0) fh.contents = "" else fh.contents = fh.contents[0..offset] end end end