Skip to content

Commit

Permalink
[Filesystem] Add a warning about chown() and chgrp() on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois authored and nicolas-grekas committed Sep 11, 2024
1 parent 6d29dd9 commit 3d2f88e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ public function chmod($files, int $mode, int $umask = 0000, bool $recursive = fa
/**
* Change the owner of an array of files or directories.
*
* This method always throws on Windows, as the underlying PHP function is not supported.
* @see https://www.php.net/chown
*
* @param string|iterable $files A filename, an array of files, or a \Traversable instance to change owner
* @param string|int $user A user name or number
* @param bool $recursive Whether change the owner recursively or not
Expand Down Expand Up @@ -260,6 +263,9 @@ public function chown($files, $user, bool $recursive = false)
/**
* Change the group of an array of files or directories.
*
* This method always throws on Windows, as the underlying PHP function is not supported.
* @see https://www.php.net/chgrp
*
* @param string|iterable $files A filename, an array of files, or a \Traversable instance to change group
* @param string|int $group A group name or number
* @param bool $recursive Whether change the group recursively or not
Expand Down

0 comments on commit 3d2f88e

Please sign in to comment.