update
This commit is contained in:
parent
8ab54401b6
commit
e47dca162a
1 changed files with 2 additions and 1 deletions
|
@ -47,6 +47,7 @@ annexLocationRelative r backend key =
|
||||||
keyFile :: Key -> FilePath
|
keyFile :: Key -> FilePath
|
||||||
keyFile key = replace "/" "%" $ replace "%" "&s" $ replace "&" "&a" $ show key
|
keyFile key = replace "/" "%" $ replace "%" "&s" $ replace "&" "&a" $ show key
|
||||||
|
|
||||||
{- Reverses keyFile -}
|
{- Reverses keyFile, converting a filename fragment (ie, the basename of
|
||||||
|
- the symlink target) into a key. -}
|
||||||
fileKey :: FilePath -> Key
|
fileKey :: FilePath -> Key
|
||||||
fileKey file = Key $ replace "&a" "&" $ replace "&s" "%" $ replace "%" "/" file
|
fileKey file = Key $ replace "&a" "&" $ replace "&s" "%" $ replace "%" "/" file
|
||||||
|
|
Loading…
Reference in a new issue