Sha256: 9f66f708195473533b787afe66ad32b604d1b9151822796be883d36f758d94d5

Contents?: true

Size: 280 Bytes

Versions: 20

Compression:

Stored size: 280 Bytes

Contents

module Imap; end

module Imap::Backup
  class FileMode
    attr_reader :filename

    def initialize(filename:)
      @filename = filename
    end

    def mode
      return nil if !File.exist?(filename)

      stat = File.stat(filename)
      stat.mode & 0o777
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
imap-backup-14.4.1 lib/imap/backup/file_mode.rb
imap-backup-14.4.0 lib/imap/backup/file_mode.rb
imap-backup-14.3.0 lib/imap/backup/file_mode.rb
imap-backup-14.2.0 lib/imap/backup/file_mode.rb
imap-backup-14.1.1 lib/imap/backup/file_mode.rb
imap-backup-14.1.0 lib/imap/backup/file_mode.rb
imap-backup-14.0.0 lib/imap/backup/file_mode.rb
imap-backup-13.4.0 lib/imap/backup/file_mode.rb
imap-backup-13.3.0 lib/imap/backup/file_mode.rb
imap-backup-13.2.0 lib/imap/backup/file_mode.rb
imap-backup-13.1.0 lib/imap/backup/file_mode.rb
imap-backup-13.0.0 lib/imap/backup/file_mode.rb
imap-backup-12.1.0 lib/imap/backup/file_mode.rb
imap-backup-12.0.0 lib/imap/backup/file_mode.rb
imap-backup-11.1.0 lib/imap/backup/file_mode.rb
imap-backup-11.1.0.rc1 lib/imap/backup/file_mode.rb
imap-backup-11.0.1 lib/imap/backup/file_mode.rb
imap-backup-11.0.0 lib/imap/backup/file_mode.rb
imap-backup-11.0.0.rc1 lib/imap/backup/file_mode.rb
imap-backup-10.0.1 lib/imap/backup/file_mode.rb