Sharing folders from an external D Drive

I have a USB drive connected to my PC but am unable to access shared folders on this drive from Nito TV on my Apple TV. I get a “cannot allocate memory” error message. Is the problem that the external drive has to be a network drive rather than connected directly to my PC.
Any help would be appreciated.
Thanks