summaryrefslogtreecommitdiffstats
path: root/hugofs
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2014-11-01 11:57:29 -0400
committerspf13 <steve.francia@gmail.com>2014-11-01 11:57:29 -0400
commit141f3e19e0a9ba873b0cece6071b1187daa81d8d (patch)
treecce0490471ad12ba2c9297f5eedea5411b8fef97 /hugofs
parentdfb848256994289f5571fae8343578cf455c6431 (diff)
Migrating Hugo to Afero for filesystem calls.
Diffstat (limited to 'hugofs')
-rw-r--r--hugofs/fs.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/hugofs/fs.go b/hugofs/fs.go
new file mode 100644
index 000000000..2fe3cbf71
--- /dev/null
+++ b/hugofs/fs.go
@@ -0,0 +1,21 @@
+// Copyright © 2013-14 Steve Francia <spf@spf13.com>.
+//
+// Licensed under the Simple Public License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://opensource.org/licenses/Simple-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package hugofs
+
+import "github.com/spf13/afero"
+
+var SourceFs = new(afero.OsFs)
+var DestinationFS = new(afero.OsFs)
+
+//var DestinationFS = new(afero.MemMapFs)