summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-09-04 15:17:41 +0200
committerLoïc Hoguin <[email protected]>2017-09-04 15:17:41 +0200
commite59b02e7cc3452ed6380e13e286fc69791080b85 (patch)
tree5ec599927dd67651901a28214eadda870976aea2
parent82d91769e79a8cc3dd417d9b98b1ee68151bf1c2 (diff)
downloadct_helper-e59b02e7cc3452ed6380e13e286fc69791080b85.tar.gz
ct_helper-e59b02e7cc3452ed6380e13e286fc69791080b85.tar.bz2
ct_helper-e59b02e7cc3452ed6380e13e286fc69791080b85.zip
Add an empty file to the static directory
-rw-r--r--src/ct_helper.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ct_helper.erl b/src/ct_helper.erl
index ef79711..f1e44f8 100644
--- a/src/ct_helper.erl
+++ b/src/ct_helper.erl
@@ -59,6 +59,7 @@ create_static_dir(Path) ->
ok = file:make_dir(Path ++ "/directory"),
ok = file:write_file(Path ++ "/unknown", "File with no extension.\n"),
ok = file:write_file(Path ++ "/file.cowboy", "File with custom extension.\n"),
+ ok = file:write_file(Path ++ "/empty.txt", ""),
ok = file:write_file(Path ++ "/plain.txt", "Timeless space.\n"),
ok = file:write_file(Path ++ "/style.css", "body{color:red}\n"),
ok = file:write_file(Path ++ "/index.html",
@@ -74,6 +75,7 @@ delete_static_dir(Path) ->
ok = file:delete(Path ++ "/index.html"),
ok = file:delete(Path ++ "/style.css"),
ok = file:delete(Path ++ "/plain.txt"),
+ ok = file:delete(Path ++ "/empty.txt"),
ok = file:delete(Path ++ "/file.cowboy"),
ok = file:delete(Path ++ "/unknown"),
ok = file:del_dir(Path ++ "/directory"),