Class: Vertx::FileProps
- Inherits:
-
Object
- Object
- Vertx::FileProps
- Defined in:
- src/main/api_shim/core/file_system.rb
Overview
Represents the properties of a file on the file system
Instance Method Summary (collapse)
-
- (Time) creation_time
The creation time of the file.
-
- (Boolean) directory?
Is the file a directory?.
-
- (Time) last_access_time
The last access time of the file.
-
- (Time) last_modified_time
The last modified time of the file.
-
- (Boolean) other?
Is the file some other file type?.
-
- (Boolean) regular_file?
Is it a regular file?.
-
- (FixNum) size
The size of the file, in bytes.
-
- (Boolean) symbolic_link?
Is it a symbolic link?.
Instance Method Details
- (Time) creation_time
The creation time of the file.
30 31 32 |
# File 'src/main/api_shim/core/file_system.rb', line 30 def creation_time Time.at(@j_props.creationTime.getTime() / 1000) end |
- (Boolean) directory?
Is the file a directory?
45 46 47 |
# File 'src/main/api_shim/core/file_system.rb', line 45 def directory? @j_props.isDirectory end |
- (Time) last_access_time
The last access time of the file.
35 36 37 |
# File 'src/main/api_shim/core/file_system.rb', line 35 def last_access_time Time.at(@j_props.lastAccessTime.getTime() / 1000) end |
- (Time) last_modified_time
The last modified time of the file.
40 41 42 |
# File 'src/main/api_shim/core/file_system.rb', line 40 def last_modified_time Time.at(@j_props.lastModifiedTime.getTime() / 1000) end |
- (Boolean) other?
Is the file some other file type?
50 51 52 |
# File 'src/main/api_shim/core/file_system.rb', line 50 def other? @j_props.isOther end |
- (Boolean) regular_file?
Is it a regular file?
55 56 57 |
# File 'src/main/api_shim/core/file_system.rb', line 55 def regular_file? @j_props.isRegularFile end |
- (FixNum) size
The size of the file, in bytes.
65 66 67 |
# File 'src/main/api_shim/core/file_system.rb', line 65 def size @j_props.size end |
- (Boolean) symbolic_link?
Is it a symbolic link?
60 61 62 |
# File 'src/main/api_shim/core/file_system.rb', line 60 def symbolic_link? @j_props.isSymbolicLink end |