mirror of https://github.com/CIRCL/PyCIRCLean
Add .jpg test file, testfile_directory.md
- Also fixed a bug with metadata codepull/12/head
parent
a450fe6b96
commit
9d2f5c7241
|
@ -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
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
|
@ -0,0 +1,12 @@
|
||||||
|
src_invalid
|
||||||
|
===========
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
src_valid
|
||||||
|
=========
|
||||||
|
|
||||||
|
- Example.jpg: image/jpeg, obtained from wikipedia.org
|
||||||
|
- blah.conf: text file with a .conf extension
|
Loading…
Reference in New Issue