diff options
author | spf13 <[email protected]> | 2014-11-01 11:57:29 -0400 |
---|---|---|
committer | spf13 <[email protected]> | 2014-11-01 11:57:29 -0400 |
commit | 141f3e19e0a9ba873b0cece6071b1187daa81d8d (patch) | |
tree | cce0490471ad12ba2c9297f5eedea5411b8fef97 /hugofs/fs.go | |
parent | dfb848256994289f5571fae8343578cf455c6431 (diff) | |
download | hugo-141f3e19e0a9ba873b0cece6071b1187daa81d8d.tar.gz hugo-141f3e19e0a9ba873b0cece6071b1187daa81d8d.zip |
Migrating Hugo to Afero for filesystem calls.
Diffstat (limited to 'hugofs/fs.go')
-rw-r--r-- | hugofs/fs.go | 21 |
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 <[email protected]>. +// +// 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) |