Add .jpg test file, testfile_directory.md

- Also fixed a bug with metadata code
pull/12/head
Dan Puttick 2017-02-22 16:06:51 -05:00
parent a450fe6b96
commit 9d2f5c7241
3 changed files with 15 additions and 3 deletions

View File

@ -165,9 +165,9 @@ class FileBase(object):
self.dst_path + "\", type '" + self.dst_path + "\", type '" +
ext + "': File exists.") ext + "': File exists.")
else: else:
# TODO: Uncomment these after object relationships are fixed dst_dir_path, filename = os.path.split(self.dst_path)
# dst_dir_path, filename = os.path.split(self.dst_path) if not os.path.exists(dst_dir_path):
# self._safe_mkdir(dst_dir_path) os.makedirs(dst_dir_path)
# TODO: Check extension for leading "." # TODO: Check extension for leading "."
self.metadata_file_path = self.dst_path + ext self.metadata_file_path = self.dst_path + ext
return self.metadata_file_path return self.metadata_file_path

BIN
tests/src_valid/Example.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

12
tests/testfile_catalog.md Normal file
View File

@ -0,0 +1,12 @@
src_invalid
===========
-
src_valid
=========
- Example.jpg: image/jpeg, obtained from wikipedia.org
- blah.conf: text file with a .conf extension