Skip to content
Snippets Groups Projects
Commit f09a3cf4 authored by Alice Brenon's avatar Alice Brenon
Browse files

A little renaming of the subcorpus extractor to enforce repository conventions

parent 33d70476
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env -S runhaskell --ghc-arg="-Wall" --ghc-arg="-i lib"
import GEODE.Metadata (PrimaryKey(..), readNamedTsv, relativePath)
import GEODE.Metadata (ArticleRecord(..), readNamedTsv, relativePath)
import System.Directory (createDirectoryIfMissing, doesFileExist)
import System.Environment (getArgs)
import System.FilePath ((</>), takeDirectory)
import System.Posix.Files (createLink)
import System.Script (syntax, try)
link :: String -> FilePath -> FilePath -> PrimaryKey -> IO ()
link :: String -> FilePath -> FilePath -> ArticleRecord -> IO ()
link extension sourceRoot targetRoot article = do
fileExists <- doesFileExist sourceFile
if fileExists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment