File::seal()

Gets the file permissions as an octal value.

Table of Contents
  1. Description
  2. Example

Description

File::seal(): ?string;

This method returns the file’s permissions as an octal value. If the file does not exist, this method returns null.

Example

$file = new File('.\path\to\file.txt');

$seal = $file->seal(); // Returns `'0644'`

File::seal()

Gets the file permissions as an octal value.

File::size()

Gets the file sizes in human readable string format.