Skip to content

Commit 38ad529

Browse files
authored
Merge pull request #26 from rofinn/rf/filepathsbase
Update FilePaths.jl to just reexport FilePathsBase.jl
2 parents 67bc712 + 2f1485a commit 38ad529

File tree

14 files changed

+4
-1577
lines changed

14 files changed

+4
-1577
lines changed

REQUIRE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
julia 0.6
22
Compat 0.17.0
3+
FilePathsBase 0.1.0
4+
Reexport 0.1.0

src/FilePaths.jl

Lines changed: 2 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -2,84 +2,7 @@ __precompile__()
22

33
module FilePaths
44

5-
using Compat
6-
7-
import Base: ==
8-
export
9-
# Types
10-
AbstractPath,
11-
Path,
12-
PosixPath,
13-
WindowsPath,
14-
Mode,
15-
Status,
16-
17-
# Methods
18-
anchor,
19-
cwd,
20-
drive,
21-
home,
22-
parts,
23-
root,
24-
hasparent,
25-
parents,
26-
filename,
27-
extension,
28-
extensions,
29-
exists,
30-
isabs,
31-
mode,
32-
created,
33-
modified,
34-
relative,
35-
move,
36-
remove,
37-
tmpname,
38-
tmpdir,
39-
mktmp,
40-
mktmpdir,
41-
chown,
42-
executable,
43-
readable,
44-
writable,
45-
raw,
46-
47-
# Macros
48-
@p_str,
49-
50-
# Constants
51-
READ,
52-
WRITE,
53-
EXEC
54-
55-
@static if VERSION < v"0.6.0-dev.2514"
56-
import Base: isexecutable
57-
else
58-
export isexecutable
59-
end
60-
61-
@compat abstract type AbstractPath <: AbstractString end
62-
63-
# Required methods for subtype of AbstractString
64-
Base.endof(p::AbstractPath) = endof(String(p))
65-
Base.next(p::AbstractPath, i::Int) = next(String(p), i)
66-
67-
# The following should be implemented in the concrete types
68-
Base.String(path::AbstractPath) = error("`String not implemented")
69-
parts(path::AbstractPath) = error("`parts` not implemented.")
70-
root(path::AbstractPath) = error("`root` not implemented.")
71-
drive(path::AbstractPath) = error("`drive` not implemented.")
72-
73-
Base.convert(::Type{AbstractPath}, x::AbstractString) = Path(x)
74-
75-
include("constants.jl")
76-
include("utils.jl")
77-
include("libc.jl")
78-
include("mode.jl")
79-
include("status.jl")
80-
include("posix.jl")
81-
include("windows.jl")
82-
include("path.jl")
83-
include("deprecates.jl")
5+
using Reexport
6+
@reexport using FilePathsBase
847

858
end # end of module

src/constants.jl

Lines changed: 0 additions & 85 deletions
This file was deleted.

src/deprecates.jl

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/libc.jl

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)