1module Obelisk.Asset.Symlink
7import qualified Data.Map as Map
9import System.FilePath.Posix
10import System.Posix.Files
12-- | Copy the given hashed files from one location to hashed paths in another
13-- location, and symlink the unhashed paths to the hashed ones
15 :: Map FilePath FilePath
19copyAndSymlink paths source destination = forM_ (Map.toList paths) $ \(original, hashed) -> do
20 createDirectoryIfMissing True $ destination </> takeDirectory hashed
21 copyFile (source </> original) (destination </> hashed)
22 createSymbolicLink (takeFileName hashed) $ destination </> original
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list