I try to fix the issue #60, If I missed something , please let me know.
This PR refactoring the startsWith function and try to handle more situations. I add more testcases to test the different situations. * Some testcases can't used in Windows* :
Copy to sub-folder
src to src/out
Copy to itself
src to src
Copy to the folder starts with src
src to src_out
Copy to the symlink folder
src to src-symlink
Copy the file to itself
src/a to src/a
More complex situations:
src to src/src_out
src to src_out/src
And I add mkdirp to devDependencies to create the directory easily.
I try to fix the issue #60, If I missed something , please let me know.
This PR refactoring the
startsWith
function and try to handle more situations. I add more testcases to test the different situations. * Some testcases can't used in Windows* :src
tosrc
/outsrc
tosrc
src
src
tosrc_out
src
tosrc-symlink
src
/a tosrc
/asrc
tosrc
/src
_outsrc
tosrc
_out/src
And I add mkdirp to devDependencies to create the directory easily.