The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Sidef::Types::Glob::File

DESCRIPTION

This class implements ...

SYNOPSIS

var obj = File(...)

INHERITS

Inherits methods from:

       * Sidef::Types::String::String

METHODS

abs

    self.abs(base)

Returns the

Aliases: abs_name, absname, rel2abs

abs_path

    self.abs_path

Returns the

Aliases: realpath

access_time_days_diff

    self.access_time_days_diff

Returns the

append

    self.append(string, mode)

Returns the

base

    self.base

Returns the

Aliases: base_name, basename

change_time_days_diff

    self.change_time_days_diff

Returns the

chmod

    self.chmod(permission)

Returns the

chown

    self.chown(uid, gid)

Returns the

compare

    self.compare(file)

Returns the

cp

    self.cp(file)

Returns the

Aliases: copy

delete

    file.delete

Deletes a file and return true on success.

Will not attempt to delete directories.

Aliases: remove

dir

    file.dir

Returns the directory of the filename, similar to the Unix shell command dirname.

Aliases: dir_name, dirname

dump

    file.dump

Returns a String representation of the File object.

edit

    self.edit(code)

Returns the

exists

    file.exists

Returns true if file exists.

has_setgid_bit

    file.has_setgid_bit

Returns true if file has setgid bit set.

has_setuid_bit

    file.has_setuid_bit

Returns true if file has setuid bit set.

has_sticky_bit

    file.has_sticky_bit

Returns true if file has sticky bit set.

is_abs

    file.is_abs

Returns true if file name is absolute.

Aliases: is_absolute

is_binary

    file.is_binary

Returns true if file looks like a binary file (heuristic guess).

is_block

    file.is_block

Returns true if file is a block special file.

is_char_device

    file.is_char_device

Returns true if file is a character special file.

is_dir

    file.is_dir

Returns true if file is a directory.

Aliases: is_directory

is_empty

    file.is_empty

Returns true if file has zero size (i.e.: is empty).

is_executable

    file.is_executable

Returns true if file is executable by effective uid/gid.

is_file

    file.is_file

Returns true if file is a plain file.

    file.is_link

Returns true if file is a symbolic link.

Returns false if symlinks aren't supported by the file system.

is_owned

    file.is_owned

Returns true if file is owned by effective uid.

is_readable

    file.is_readable

Returns true if file is readable by effective uid/gid.

is_real_executable

    file.is_real_executable

Returns true if file is executable by real uid/gid.

is_real_owned

    file.is_real_owned

Returns true if file is owned by real uid.

is_real_readable

    file.is_real_readable

Returns true if file is readable by real uid/gid.

is_real_writeable

    file.is_real_writeable

Returns true if file is writable by real uid/gid.

is_socket

    file.is_socket

Returns true if file is a socket.

is_text

    file.is_text

Returns true if file is an ASCII or UTF-8 text file (heuristic guess).

is_writeable

    file.is_writeable

Returns true if file is writable by effective uid/gid.

    oldfile.link(newfile)

Creates a new filename linked to the old filename.

Returns true for success, false otherwise.

lstat

    self.lstat

Returns the

make

    self.make(*args)

Returns the

Aliases: touch, create, mkfile

md5

    self.md5

Returns the

mktemp

    self.mktemp(:opts)

Returns the

Aliases: make_tmp, make_temp

modification_time_days_diff

    self.modification_time_days_diff

Returns the

mv

    self.mv(file)

Returns the

Aliases: move

name

    self.name

Returns the

new

    self.new

Returns the

Aliases: call

open

    self.open(mode, fh_ref, err_ref)

Returns the

open_a

    self.open_a(*args)

Returns the

Aliases: open_append

open_arw

    self.open_arw(*args)

Returns the

Aliases: open_append_read_write

opendir

    self.opendir(*args)

Returns the

open_r

    self.open_r(*args)

Returns the

Aliases: open_read

open_rw

    self.open_rw(*args)

Returns the

Aliases: open_read_write

open_w

    self.open_w(*args)

Returns the

Aliases: open_write

read

    self.read(mode)

Returns the

    self.read_link

Returns the

Aliases: readlink

rel

    self.rel(base)

Returns the

Aliases: abs2rel, rel_name, relname

rename

    self.rename(file)

Returns the

sha1

    self.sha1

Returns the

sha256

    self.sha256

Returns the

sha512

    self.sha512

Returns the

size

    self.size

Returns the

split

    self.split

Returns the

splitpath

    self.splitpath

Returns the

stat

    self.stat

Returns the

    oldfile.symlink(newfile)

Creates a new filename symbolically linked to the old filename.

Returns true for success, false otherwise.

sysopen

    self.sysopen(var_ref, mode, perm)

Returns the

to_file

    self.to_file

Returns the

to_s

    self.to_s

Returns the

Aliases: to_str

truncate

    self.truncate(length)

Returns the

    self.unlink(*args)

Returns the

utime

    self.utime(atime, mtime)

Returns the

write

    self.write(string, mode)

Returns the