File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ ctime(st::StatStruct) = st.ctime
151
151
"""
152
152
ispath(path) -> Bool
153
153
154
- Return `true` if `path` is a valid filesystem path, `false` otherwise.
154
+ Return `true` if a valid filesystem entity exists at `path`,
155
+ otherwise returns `false`.
156
+ This is the generalization of [`isfile`](@ref), [`isdir`](@ref) etc.
155
157
"""
156
158
ispath (st:: StatStruct ) = filemode (st) & 0xf000 != 0x0000
157
159
182
184
julia> isdir("not/a/directory")
183
185
false
184
186
```
187
+
188
+ See also: [`isfile`](@ref) and [`ispath`](@ref).
185
189
"""
186
190
isdir (st:: StatStruct ) = filemode (st) & 0xf000 == 0x4000
187
191
209
213
210
214
julia> close(f); rm("test_file.txt")
211
215
```
216
+
217
+ See also: [`isdir`](@ref) and [`ispath`](@ref).
212
218
"""
213
219
isfile (st:: StatStruct ) = filemode (st) & 0xf000 == 0x8000
214
220
You can’t perform that action at this time.
0 commit comments