Class List Method List File List

# Class: Vertx::FileSystem

Inherits:
  Object
  - Object
  - Vertx::FileSystem
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb

## Instance Method Summary (collapse)

- - (Object) chmod(path = nil, perms = nil)
- - (Object) chmod_blocking(path = nil, perms = nil)
- - (Object) chmod_recursive(path = nil, perms = nil, dirPerms = nil)
- - (Object) chmod_recursive_blocking(path = nil, perms = nil, dirPerms = nil)
- - (Object) chown(path = nil, user = nil, group = nil)
- - (Object) chown_blocking(path = nil, user = nil, group = nil)
- - (Object) copy(from = nil, to = nil)
- - (Object) copy_blocking(from = nil, to = nil)
- - (Object) copy_recursive(from = nil, to = nil, recursive = nil)
- - (Object) copy_recursive_blocking(from = nil, to = nil, recursive = nil)
- - (Object) create_file(path = nil, perms = nil)
- - (Object) create_file_blocking(path = nil, perms = nil)
- - (Object) delete(path = nil)
- - (Object) delete_blocking(path = nil)
- - (Object) delete_recursive(path = nil, recursive = nil)
- - (Object) delete_recursive_blocking(path = nil, recursive = nil)
- - (Object) exists(path = nil)
- - (Boolean) exists_blocking?(path = nil)
- - (Object) fs_props(path = nil)
- - (Object) fs_props_blocking(path = nil)
- - (FileSystem) initialize(j_del) constructor
  A new instance of FileSystem.
- - (Object) j_del
- - (Object) link(link = nil, existing = nil)
- - (Object) link_blocking(link = nil, existing = nil)
- - (Object) lprops(path = nil)
- - (Object) lprops_blocking(path = nil)
- - (Object) mkdir(path = nil, perms = nil)
- - (Object) mkdir_blocking(path = nil, perms = nil)
- - (Object) mkdirs(path = nil, perms = nil)
- - (Object) mkdirs_blocking(path = nil, perms = nil)
- - (Object) move(from = nil, to = nil)
- - (Object) move_blocking(from = nil, to = nil)
- - (Object) open(path = nil, options = nil)
- - (Object) open_blocking(path = nil, options = nil)
- - (Object) props(path = nil)
- - (Object) props_blocking(path = nil)
- - (Object) read_dir(path = nil, filter = nil)
- - (Object) read_dir_blocking(path = nil, filter = nil)
- - (Object) read_file(path = nil)
- - (Object) read_file_blocking(path = nil)
- - (Object) read_symlink(link = nil)
- - (Object) read_symlink_blocking(link = nil)
- - (Object) symlink(link = nil, existing = nil)
- - (Object) symlink_blocking(link = nil, existing = nil)
- - (Object) truncate(path = nil, len = nil)
- - (Object) truncate_blocking(path = nil, len = nil)
- - (Object) unlink(link = nil)
- - (Object) unlink_blocking(link = nil)
- - (Object) write_file(path = nil, data = nil)
- - (Object) write_file_blocking(path = nil, data = nil)

## Constructor Details

### - (`FileSystem`) initialize(j_del)

Returns a new instance of FileSystem

    23
    24
    25
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 23

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) chmod(path = nil, perms = nil)

Raises:

- (`ArgumentError`)

    144
    145
    146
    147
    148
    149
    150
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 144

    def chmod(path=nil,perms=nil)
      if path.class == String && perms.class == String && block_given?
        @j_del.java_method(:chmod, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,perms,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling chmod(path,perms)"
    end

### - (`Object`) chmod_blocking(path = nil, perms = nil)

Raises:

- (`ArgumentError`)

    155
    156
    157
    158
    159
    160
    161
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 155

    def chmod_blocking(path=nil,perms=nil)
      if path.class == String && perms.class == String && !block_given?
        @j_del.java_method(:chmodBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(path,perms)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling chmod_blocking(path,perms)"
    end

### - (`Object`) chmod_recursive(path = nil, perms = nil, dirPerms = nil)

Raises:

- (`ArgumentError`)

    173
    174
    175
    176
    177
    178
    179
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 173

    def chmod_recursive(path=nil,perms=nil,dirPerms=nil)
      if path.class == String && perms.class == String && dirPerms.class == String && block_given?
        @j_del.java_method(:chmodRecursive, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,perms,dirPerms,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling chmod_recursive(path,perms,dirPerms)"
    end

### - (`Object`) chmod_recursive_blocking(path = nil, perms = nil, dirPerms = nil)

Raises:

- (`ArgumentError`)

    185
    186
    187
    188
    189
    190
    191
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 185

    def chmod_recursive_blocking(path=nil,perms=nil,dirPerms=nil)
      if path.class == String && perms.class == String && dirPerms.class == String && !block_given?
        @j_del.java_method(:chmodRecursiveBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(path,perms,dirPerms)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling chmod_recursive_blocking(path,perms,dirPerms)"
    end

### - (`Object`) chown(path = nil, user = nil, group = nil)

Raises:

- (`ArgumentError`)

    198
    199
    200
    201
    202
    203
    204
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 198

    def chown(path=nil,user=nil,group=nil)
      if path.class == String && user.class == String && group.class == String && block_given?
        @j_del.java_method(:chown, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,user,group,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling chown(path,user,group)"
    end

### - (`Object`) chown_blocking(path = nil, user = nil, group = nil)

Raises:

- (`ArgumentError`)

    211
    212
    213
    214
    215
    216
    217
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 211

    def chown_blocking(path=nil,user=nil,group=nil)
      if path.class == String && user.class == String && group.class == String && !block_given?
        @j_del.java_method(:chownBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(path,user,group)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling chown_blocking(path,user,group)"
    end

### - (`Object`) copy(from = nil, to = nil)

Raises:

- (`ArgumentError`)

    38
    39
    40
    41
    42
    43
    44
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 38

    def copy(from=nil,to=nil)
      if from.class == String && to.class == String && block_given?
        @j_del.java_method(:copy, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(from,to,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling copy(from,to)"
    end

### - (`Object`) copy_blocking(from = nil, to = nil)

Raises:

- (`ArgumentError`)

    49
    50
    51
    52
    53
    54
    55
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 49

    def copy_blocking(from=nil,to=nil)
      if from.class == String && to.class == String && !block_given?
        @j_del.java_method(:copyBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(from,to)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling copy_blocking(from,to)"
    end

### - (`Object`) copy_recursive(from = nil, to = nil, recursive = nil)

Raises:

- (`ArgumentError`)

    67
    68
    69
    70
    71
    72
    73
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 67

    def copy_recursive(from=nil,to=nil,recursive=nil)
      if from.class == String && to.class == String && (recursive.class == TrueClass || recursive.class == FalseClass) && block_given?
        @j_del.java_method(:copyRecursive, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::boolean.java_class,Java::IoVertxCore::Handler.java_class]).call(from,to,recursive,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling copy_recursive(from,to,recursive)"
    end

### - (`Object`) copy_recursive_blocking(from = nil, to = nil, recursive = nil)

Raises:

- (`ArgumentError`)

    79
    80
    81
    82
    83
    84
    85
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 79

    def copy_recursive_blocking(from=nil,to=nil,recursive=nil)
      if from.class == String && to.class == String && (recursive.class == TrueClass || recursive.class == FalseClass) && !block_given?
        @j_del.java_method(:copyRecursiveBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::boolean.java_class]).call(from,to,recursive)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling copy_recursive_blocking(from,to,recursive)"
    end

### - (`Object`) create_file(path = nil, perms = nil)

Raises:

- (`ArgumentError`)

    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 575

    def create_file(path=nil,perms=nil)
      if path.class == String && block_given? && perms == nil
        @j_del.java_method(:createFile, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      elsif path.class == String && perms.class == String && block_given?
        @j_del.java_method(:createFile, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,perms,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling create_file(path,perms)"
    end

### - (`Object`) create_file_blocking(path = nil, perms = nil)

Raises:

- (`ArgumentError`)

    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 589

    def create_file_blocking(path=nil,perms=nil)
      if path.class == String && !block_given? && perms == nil
        @j_del.java_method(:createFileBlocking, [Java::java.lang.String.java_class]).call(path)
        return self
      elsif path.class == String && perms.class == String && !block_given?
        @j_del.java_method(:createFileBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(path,perms)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling create_file_blocking(path,perms)"
    end

### - (`Object`) delete(path = nil)

Raises:

- (`ArgumentError`)

    353
    354
    355
    356
    357
    358
    359
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 353

    def delete(path=nil)
      if path.class == String && block_given?
        @j_del.java_method(:delete, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling delete(path)"
    end

### - (`Object`) delete_blocking(path = nil)

Raises:

- (`ArgumentError`)

    363
    364
    365
    366
    367
    368
    369
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 363

    def delete_blocking(path=nil)
      if path.class == String && !block_given?
        @j_del.java_method(:deleteBlocking, [Java::java.lang.String.java_class]).call(path)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling delete_blocking(path)"
    end

### - (`Object`) delete_recursive(path = nil, recursive = nil)

Raises:

- (`ArgumentError`)

    378
    379
    380
    381
    382
    383
    384
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 378

    def delete_recursive(path=nil,recursive=nil)
      if path.class == String && (recursive.class == TrueClass || recursive.class == FalseClass) && block_given?
        @j_del.java_method(:deleteRecursive, [Java::java.lang.String.java_class,Java::boolean.java_class,Java::IoVertxCore::Handler.java_class]).call(path,recursive,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling delete_recursive(path,recursive)"
    end

### - (`Object`) delete_recursive_blocking(path = nil, recursive = nil)

Raises:

- (`ArgumentError`)

    389
    390
    391
    392
    393
    394
    395
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 389

    def delete_recursive_blocking(path=nil,recursive=nil)
      if path.class == String && (recursive.class == TrueClass || recursive.class == FalseClass) && !block_given?
        @j_del.java_method(:deleteRecursiveBlocking, [Java::java.lang.String.java_class,Java::boolean.java_class]).call(path,recursive)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling delete_recursive_blocking(path,recursive)"
    end

### - (`Object`) exists(path = nil)

Raises:

- (`ArgumentError`)

    603
    604
    605
    606
    607
    608
    609
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 603

    def exists(path=nil)
      if path.class == String && block_given?
        @j_del.java_method(:exists, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling exists(path)"
    end

### - (`Boolean`) exists_blocking?(path = nil)

Returns:

- (`Boolean`)

Raises:

- (`ArgumentError`)

    613
    614
    615
    616
    617
    618
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 613

    def exists_blocking?(path=nil)
      if path.class == String && !block_given?
        return @j_del.java_method(:existsBlocking, [Java::java.lang.String.java_class]).call(path)
      end
      raise ArgumentError, "Invalid arguments when calling exists_blocking?(path)"
    end

### - (`Object`) fs_props(path = nil)

Raises:

- (`ArgumentError`)

    623
    624
    625
    626
    627
    628
    629
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 623

    def fs_props(path=nil)
      if path.class == String && block_given?
        @j_del.java_method(:fsProps, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ::Vertx::Util::Utils.safe_create(ar.result,::Vertx::FileSystemProps) : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling fs_props(path)"
    end

### - (`Object`) fs_props_blocking(path = nil)

Raises:

- (`ArgumentError`)

    633
    634
    635
    636
    637
    638
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 633

    def fs_props_blocking(path=nil)
      if path.class == String && !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:fsPropsBlocking, [Java::java.lang.String.java_class]).call(path),::Vertx::FileSystemProps)
      end
      raise ArgumentError, "Invalid arguments when calling fs_props_blocking(path)"
    end

### - (`Object`) j_del

    28
    29
    30
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 28

    def j_del
      @j_del
    end

### - (`Object`) link(link = nil, existing = nil)

Raises:

- (`ArgumentError`)

    267
    268
    269
    270
    271
    272
    273
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 267

    def link(link=nil,existing=nil)
      if link.class == String && existing.class == String && block_given?
        @j_del.java_method(:link, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(link,existing,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling link(link,existing)"
    end

### - (`Object`) link_blocking(link = nil, existing = nil)

Raises:

- (`ArgumentError`)

    278
    279
    280
    281
    282
    283
    284
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 278

    def link_blocking(link=nil,existing=nil)
      if link.class == String && existing.class == String && !block_given?
        @j_del.java_method(:linkBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(link,existing)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling link_blocking(link,existing)"
    end

### - (`Object`) lprops(path = nil)

Raises:

- (`ArgumentError`)

    246
    247
    248
    249
    250
    251
    252
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 246

    def lprops(path=nil)
      if path.class == String && block_given?
        @j_del.java_method(:lprops, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ::Vertx::Util::Utils.safe_create(ar.result,::Vertx::FileProps) : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling lprops(path)"
    end

### - (`Object`) lprops_blocking(path = nil)

Raises:

- (`ArgumentError`)

    256
    257
    258
    259
    260
    261
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 256

    def lprops_blocking(path=nil)
      if path.class == String && !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:lpropsBlocking, [Java::java.lang.String.java_class]).call(path),::Vertx::FileProps)
      end
      raise ArgumentError, "Invalid arguments when calling lprops_blocking(path)"
    end

### - (`Object`) mkdir(path = nil, perms = nil)

Raises:

- (`ArgumentError`)

    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 408

    def mkdir(path=nil,perms=nil)
      if path.class == String && block_given? && perms == nil
        @j_del.java_method(:mkdir, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      elsif path.class == String && perms.class == String && block_given?
        @j_del.java_method(:mkdir, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,perms,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling mkdir(path,perms)"
    end

### - (`Object`) mkdir_blocking(path = nil, perms = nil)

Raises:

- (`ArgumentError`)

    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 422

    def mkdir_blocking(path=nil,perms=nil)
      if path.class == String && !block_given? && perms == nil
        @j_del.java_method(:mkdirBlocking, [Java::java.lang.String.java_class]).call(path)
        return self
      elsif path.class == String && perms.class == String && !block_given?
        @j_del.java_method(:mkdirBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(path,perms)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling mkdir_blocking(path,perms)"
    end

### - (`Object`) mkdirs(path = nil, perms = nil)

Raises:

- (`ArgumentError`)

    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 444

    def mkdirs(path=nil,perms=nil)
      if path.class == String && block_given? && perms == nil
        @j_del.java_method(:mkdirs, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      elsif path.class == String && perms.class == String && block_given?
        @j_del.java_method(:mkdirs, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,perms,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling mkdirs(path,perms)"
    end

### - (`Object`) mkdirs_blocking(path = nil, perms = nil)

Raises:

- (`ArgumentError`)

    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 458

    def mkdirs_blocking(path=nil,perms=nil)
      if path.class == String && !block_given? && perms == nil
        @j_del.java_method(:mkdirsBlocking, [Java::java.lang.String.java_class]).call(path)
        return self
      elsif path.class == String && perms.class == String && !block_given?
        @j_del.java_method(:mkdirsBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(path,perms)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling mkdirs_blocking(path,perms)"
    end

### - (`Object`) move(from = nil, to = nil)

Raises:

- (`ArgumentError`)

    93
    94
    95
    96
    97
    98
    99
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 93

    def move(from=nil,to=nil)
      if from.class == String && to.class == String && block_given?
        @j_del.java_method(:move, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(from,to,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling move(from,to)"
    end

### - (`Object`) move_blocking(from = nil, to = nil)

Raises:

- (`ArgumentError`)

    104
    105
    106
    107
    108
    109
    110
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 104

    def move_blocking(from=nil,to=nil)
      if from.class == String && to.class == String && !block_given?
        @j_del.java_method(:moveBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(from,to)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling move_blocking(from,to)"
    end

### - (`Object`) open(path = nil, options = nil)

Raises:

- (`ArgumentError`)

    553
    554
    555
    556
    557
    558
    559
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 553

    def open(path=nil,options=nil)
      if path.class == String && options.class == Hash && block_given?
        @j_del.java_method(:open, [Java::java.lang.String.java_class,Java::IoVertxCoreFile::OpenOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(path,Java::IoVertxCoreFile::OpenOptions.new(::Vertx::Util::Utils.to_json_object(options)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ::Vertx::Util::Utils.safe_create(ar.result,::Vertx::AsyncFile) : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling open(path,options)"
    end

### - (`Object`) open_blocking(path = nil, options = nil)

Raises:

- (`ArgumentError`)

    564
    565
    566
    567
    568
    569
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 564

    def open_blocking(path=nil,options=nil)
      if path.class == String && options.class == Hash && !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:openBlocking, [Java::java.lang.String.java_class,Java::IoVertxCoreFile::OpenOptions.java_class]).call(path,Java::IoVertxCoreFile::OpenOptions.new(::Vertx::Util::Utils.to_json_object(options))),::Vertx::AsyncFile)
      end
      raise ArgumentError, "Invalid arguments when calling open_blocking(path,options)"
    end

### - (`Object`) props(path = nil)

Raises:

- (`ArgumentError`)

    224
    225
    226
    227
    228
    229
    230
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 224

    def props(path=nil)
      if path.class == String && block_given?
        @j_del.java_method(:props, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ::Vertx::Util::Utils.safe_create(ar.result,::Vertx::FileProps) : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling props(path)"
    end

### - (`Object`) props_blocking(path = nil)

Raises:

- (`ArgumentError`)

    234
    235
    236
    237
    238
    239
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 234

    def props_blocking(path=nil)
      if path.class == String && !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:propsBlocking, [Java::java.lang.String.java_class]).call(path),::Vertx::FileProps)
      end
      raise ArgumentError, "Invalid arguments when calling props_blocking(path)"
    end

### - (`Object`) read_dir(path = nil, filter = nil)

Raises:

- (`ArgumentError`)

    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 478

    def read_dir(path=nil,filter=nil)
      if path.class == String && block_given? && filter == nil
        @j_del.java_method(:readDir, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result.to_a.map { |elt| elt } : nil) }))
        return self
      elsif path.class == String && filter.class == String && block_given?
        @j_del.java_method(:readDir, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,filter,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result.to_a.map { |elt| elt } : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling read_dir(path,filter)"
    end

### - (`Object`) read_dir_blocking(path = nil, filter = nil)

Raises:

- (`ArgumentError`)

    492
    493
    494
    495
    496
    497
    498
    499
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 492

    def read_dir_blocking(path=nil,filter=nil)
      if path.class == String && !block_given? && filter == nil
        return @j_del.java_method(:readDirBlocking, [Java::java.lang.String.java_class]).call(path).to_a.map { |elt| elt }
      elsif path.class == String && filter.class == String && !block_given?
        return @j_del.java_method(:readDirBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(path,filter).to_a.map { |elt| elt }
      end
      raise ArgumentError, "Invalid arguments when calling read_dir_blocking(path,filter)"
    end

### - (`Object`) read_file(path = nil)

Raises:

- (`ArgumentError`)

    506
    507
    508
    509
    510
    511
    512
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 506

    def read_file(path=nil)
      if path.class == String && block_given?
        @j_del.java_method(:readFile, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(path,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ::Vertx::Util::Utils.safe_create(ar.result,::Vertx::Buffer) : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling read_file(path)"
    end

### - (`Object`) read_file_blocking(path = nil)

Raises:

- (`ArgumentError`)

    516
    517
    518
    519
    520
    521
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 516

    def read_file_blocking(path=nil)
      if path.class == String && !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:readFileBlocking, [Java::java.lang.String.java_class]).call(path),::Vertx::Buffer)
      end
      raise ArgumentError, "Invalid arguments when calling read_file_blocking(path)"
    end

### - (`Object`) read_symlink(link = nil)

Raises:

- (`ArgumentError`)

    333
    334
    335
    336
    337
    338
    339
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 333

    def read_symlink(link=nil)
      if link.class == String && block_given?
        @j_del.java_method(:readSymlink, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(link,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling read_symlink(link)"
    end

### - (`Object`) read_symlink_blocking(link = nil)

Raises:

- (`ArgumentError`)

    343
    344
    345
    346
    347
    348
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 343

    def read_symlink_blocking(link=nil)
      if link.class == String && !block_given?
        return @j_del.java_method(:readSymlinkBlocking, [Java::java.lang.String.java_class]).call(link)
      end
      raise ArgumentError, "Invalid arguments when calling read_symlink_blocking(link)"
    end

### - (`Object`) symlink(link = nil, existing = nil)

Raises:

- (`ArgumentError`)

    290
    291
    292
    293
    294
    295
    296
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 290

    def symlink(link=nil,existing=nil)
      if link.class == String && existing.class == String && block_given?
        @j_del.java_method(:symlink, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(link,existing,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling symlink(link,existing)"
    end

### - (`Object`) symlink_blocking(link = nil, existing = nil)

Raises:

- (`ArgumentError`)

    301
    302
    303
    304
    305
    306
    307
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 301

    def symlink_blocking(link=nil,existing=nil)
      if link.class == String && existing.class == String && !block_given?
        @j_del.java_method(:symlinkBlocking, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(link,existing)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling symlink_blocking(link,existing)"
    end

### - (`Object`) truncate(path = nil, len = nil)

Raises:

- (`ArgumentError`)

    118
    119
    120
    121
    122
    123
    124
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 118

    def truncate(path=nil,len=nil)
      if path.class == String && len.class == Fixnum && block_given?
        @j_del.java_method(:truncate, [Java::java.lang.String.java_class,Java::long.java_class,Java::IoVertxCore::Handler.java_class]).call(path,len,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling truncate(path,len)"
    end

### - (`Object`) truncate_blocking(path = nil, len = nil)

Raises:

- (`ArgumentError`)

    129
    130
    131
    132
    133
    134
    135
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 129

    def truncate_blocking(path=nil,len=nil)
      if path.class == String && len.class == Fixnum && !block_given?
        @j_del.java_method(:truncateBlocking, [Java::java.lang.String.java_class,Java::long.java_class]).call(path,len)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling truncate_blocking(path,len)"
    end

### - (`Object`) unlink(link = nil)

Raises:

- (`ArgumentError`)

    312
    313
    314
    315
    316
    317
    318
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 312

    def unlink(link=nil)
      if link.class == String && block_given?
        @j_del.java_method(:unlink, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(link,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling unlink(link)"
    end

### - (`Object`) unlink_blocking(link = nil)

Raises:

- (`ArgumentError`)

    322
    323
    324
    325
    326
    327
    328
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 322

    def unlink_blocking(link=nil)
      if link.class == String && !block_given?
        @j_del.java_method(:unlinkBlocking, [Java::java.lang.String.java_class]).call(link)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling unlink_blocking(link)"
    end

### - (`Object`) write_file(path = nil, data = nil)

Raises:

- (`ArgumentError`)

    528
    529
    530
    531
    532
    533
    534
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 528

    def write_file(path=nil,data=nil)
      if path.class == String && data.class.method_defined?(:j_del) && block_given?
        @j_del.java_method(:writeFile, [Java::java.lang.String.java_class,Java::IoVertxCoreBuffer::Buffer.java_class,Java::IoVertxCore::Handler.java_class]).call(path,data.j_del,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling write_file(path,data)"
    end

### - (`Object`) write_file_blocking(path = nil, data = nil)

Raises:

- (`ArgumentError`)

    539
    540
    541
    542
    543
    544
    545
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_system.rb', line 539

    def write_file_blocking(path=nil,data=nil)
      if path.class == String && data.class.method_defined?(:j_del) && !block_given?
        @j_del.java_method(:writeFileBlocking, [Java::java.lang.String.java_class,Java::IoVertxCoreBuffer::Buffer.java_class]).call(path,data.j_del)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling write_file_blocking(path,data)"
    end