nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff <>
Subject Re: Nifi:How can i remove “.” from “.filename” in nifi custom processor
Date Thu, 05 Oct 2017 14:35:48 GMT

The . in front of the filename is used while the contents of the file are
being written, so that the file will not be picked up by processors like
ListFile (if configured to watch the same directory to which files are
being written) until the writing is complete.  Can you confirm that the
complete file contents have been written, and the .filename is still
present in the directory?

On Thu, Oct 5, 2017 at 7:47 AM sally <> wrote:

> I have send updated file to directory used a logic of putFile but it save
> file as i ".filenam.xml" and can't get it by getFile Processor how can
> remove "." from this file, i have read that putFile makes it automatically
> i
> mean adding dot in front of flowfile name, but how can i remove this dot?
> final Path tempCopyFile =
> rootDirPath.resolve("."+flowFile.getAttribute(CoreAttributes.FILENAME.key()));
> this is how it works in putFile how can i make same in my proessor without
> adding "." to filename?
> --
> Sent from:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message