Correct behaviour for directories with separator
Add directories method
Correct behaviour for files with separator
Add file with input stream method