Hi, I came across the following issue: using a directory and path reader (filtering for files only) and supplying an empty folder works fine (it doesn't produce any files, but that's just fine). However, say I want to skip any processing from this reader, as an innocent user I supply the Windows nul: device. Now my workspace crashes, how is that? Of course, there are a lot of ways around this problem, but wouldn't it be nice if the directory and path reader behaves in the same way like, say, the Windows dir command?
Directory and path reader does not support nul
Best answer by mark2atsafe
It looks like we won't take any action on this issue.
The thinking is that technically Windows NUL: is a file that isn't ever written to. Using it as an output makes sense, because it's just routing output to a file that will never contain anything.
However, when reading from it using the PATH reader, FME recognizes this as a file and produces the error "The source dataset must be a folder not a file."
Since NUL: is technically a file this is correct behaviour.
If you just want to skip this, you can set the "Ignore Failed Readers" option in "Workspace Parameters" and it should be logged as a problem, but FME will carry on with the translation.
Hope this helps to clarify the situation.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.