checking tmpDir uploadDir folders