Skip to main content
Question

Is there a way to check if a directory exists?

  • Mar 7, 2024 5:33 PM UTC
  • 2 replies
  • 509 views

gjaguilar
Contributor
Forum|alt.badge.img+6

Is there a way to check if a directory exists?
I create a directory B using the mkdir command within one SystemCaller and in another SystemCaller it copies file from directory A to B and it works.
But the process must copy copy new files that are created in directory A and the mkdir gives an error because the directory already exists.

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+73
  • Celebrity
  • Mar 7, 2024 7:30 PM UTC

gjaguilar
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • Mar 13, 2024 7:10 AM UTC

Thanks a lot, 

I used this transformer  (FileExistenceChecker) and everything worked fine.