Fixed a bug in the copy function. Copy function now check to see if the actual dataSourceFile exist, rather than just the parent directory.