Skip to content

Commit 3ee867c

Browse files
committed
update readme
1 parent 1ea2b42 commit 3ee867c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
`php-chmod` is a PHP library for easily changing file/directory permissions recursively.
1313

14-
✅ Literal octal notation (0o) is supported
14+
> ✅ Literal octal notation (0o) is supported
1515
1616
### Versions & Dependencies
1717

@@ -117,29 +117,29 @@ $result->setNames(['*.php']);
117117
$result->setExcludedPaths(['first/dir', 'other/dir']);
118118
```
119119

120-
`scan` finds all the concerned files/directories:
120+
`doExcludeFiles` excludes all files:
121121

122122
```php
123-
$result->scan([__DIR__]);
123+
$result->doExcludeFiles();
124124
```
125125

126-
`setPaths` sets paths of files/directories manually. This is an alternative to the scanner if you want to use a custom
127-
scanner:
126+
`doExcludeDirectories` excludes all directories:
128127

129128
```php
130-
$result->setPaths($paths);
129+
$result->doExcludeDirectories();
131130
```
132131

133-
`doExcludeFiles` excludes all files:
132+
`scan` finds all the concerned files/directories:
134133

135134
```php
136-
$result->doExcludeFiles();
135+
$result->scan([__DIR__]);
137136
```
138137

139-
`doExcludeDirectories` excludes all directories:
138+
`setPaths` sets paths of files/directories manually. This is an alternative to the scanner if you want to use a custom
139+
scanner:
140140

141141
```php
142-
$result->doExcludeDirectories();
142+
$result->setPaths($paths);
143143
```
144144

145145
`dryRun` returns an array of the concerned files/directories:

0 commit comments

Comments
 (0)