Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

How to transfer a file from datafiles to success?

Deepanshu271
New Contributor III
New Contributor III

Hi Team,

I have worked on a jar file that reads a input file from datafiles in saviynt after my jar code reads the data successfully i want to transfer it to success folder else to failed folder.

 

Kindly provide your inputs.

Thanks

1 REPLY 1

Amit_Malik
Valued Contributor II
Valued Contributor II

Hi @Deepanshu271 ,

The way you are reading file using Java functions / class or methods . You can also use it to move it, right? I have not come across such a need but would have tried 

myFile.renameTo(new File("/the/new/place/newName.file")); or others ways in Java to do that.

I think the user running you Java Jar might have access to move files also, if not , then Saviynt might help in that.

Best Regards,

Amit

If helped , please ACCEPT SOLUTION and give KUDOS.

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".