Class: Vertx::FileProps
- Inherits:
-
Object
- Object
- Vertx::FileProps
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/file_props.rb
Overview
Represents properties of a file on the file system.
Instance Method Summary (collapse)
-
- (Fixnum) creation_time
The date the file was created.
-
- (true, false) directory?
Is the file a directory?.
-
- (Fixnum) last_access_time
The date the file was last accessed.
-
- (Fixnum) last_modified_time
The date the file was last modified.
-
- (true, false) other?
Is the file some other type? (I.e. not a directory, regular file or symbolic link).
-
- (true, false) regular_file?
Is the file a regular file?.
-
- (Fixnum) size
The size of the file, in bytes.
-
- (true, false) symbolic_link?
Is the file a symbolic link?.
Instance Method Details
- (Fixnum) creation_time
The date the file was created
19 20 21 22 23 24 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/file_props.rb', line 19 def creation_time if !block_given? return @j_del.java_method(:creationTime, []).call() end raise ArgumentError, "Invalid arguments when calling creation_time()" end |
- (true, false) directory?
Is the file a directory?
43 44 45 46 47 48 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/file_props.rb', line 43 def directory? if !block_given? return @j_del.java_method(:isDirectory, []).call() end raise ArgumentError, "Invalid arguments when calling directory?()" end |
- (Fixnum) last_access_time
The date the file was last accessed
27 28 29 30 31 32 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/file_props.rb', line 27 def last_access_time if !block_given? return @j_del.java_method(:lastAccessTime, []).call() end raise ArgumentError, "Invalid arguments when calling last_access_time()" end |
- (Fixnum) last_modified_time
The date the file was last modified
35 36 37 38 39 40 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/file_props.rb', line 35 def last_modified_time if !block_given? return @j_del.java_method(:lastModifiedTime, []).call() end raise ArgumentError, "Invalid arguments when calling last_modified_time()" end |
- (true, false) other?
Is the file some other type? (I.e. not a directory, regular file or symbolic link)
51 52 53 54 55 56 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/file_props.rb', line 51 def other? if !block_given? return @j_del.java_method(:isOther, []).call() end raise ArgumentError, "Invalid arguments when calling other?()" end |
- (true, false) regular_file?
Is the file a regular file?
59 60 61 62 63 64 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/file_props.rb', line 59 def regular_file? if !block_given? return @j_del.java_method(:isRegularFile, []).call() end raise ArgumentError, "Invalid arguments when calling regular_file?()" end |
- (Fixnum) size
The size of the file, in bytes
75 76 77 78 79 80 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/file_props.rb', line 75 def size if !block_given? return @j_del.java_method(:size, []).call() end raise ArgumentError, "Invalid arguments when calling size()" end |
- (true, false) symbolic_link?
Is the file a symbolic link?
67 68 69 70 71 72 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/file_props.rb', line 67 def symbolic_link? if !block_given? return @j_del.java_method(:isSymbolicLink, []).call() end raise ArgumentError, "Invalid arguments when calling symbolic_link?()" end |