You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first important difference about working with paths in FilePathsBase.jl is that path
23
-
segments are represented as an immutable tuple of strings.
19
+
Here are some common operations that you may want to perform with file paths.
24
20
25
-
Path creation:
26
21
```julia
27
-
julia>Path("~/repos/FilePathsBase.jl/")
28
-
p"~/repos/FilePathsBase.jl/"
29
-
```
30
-
or
31
-
```julia
32
-
julia>p"~/repos/FilePathsBase.jl/"
33
-
p"~/repos/FilePathsBase.jl/"
34
-
```
22
+
#=
23
+
NOTE: We're loading our `/` operator for path concatenation into the currect scope, but non-path division operations will still fallback to the base behaviour.
julia> str =mapreduce(*, walkpath(tmpfp /"docs"/"src")) do x
122
+
read(x, String)
123
+
end
124
+
"# API\n\nAll the standard methods for working with paths in base julia exist in the FilePathsBase.jl. The following describes the rough mapping of method names. Use `?` at the REPL to get the documentation and arguments as they may be different than the base implementations.\n\n..."
125
+
126
+
# Could also write the result to a file with `write(newfile, str)`)
0 commit comments