fileprovider materialize an item programaticaly.

We would like to materialize an item programaticlay from the code. From the known apis there is no function that can do this. The fileproviderctl has an implementation for this functionality: ex: fileproviderctl materialize "a_file_path".

How can we achieve the same functionality as "fileproviderctl materialize" call ?

Thnaks.

fileproviderctl materialize just does the same thing as opening a file. When you try to access a placeholder file, the file provider will try to materialize the file.

It is not entirely true. If i open and try to read a file than it will be materilized, but if the file is zero bytes size, opening and reading doesn't materialize the file. but, if I am doing fileproviderctl materialize on that file than it will be materilized and the download icon dissapears. So fileproviderctl materialize does something more than opening the file. I am still looking for a solution in this case.

fileprovider materialize an item programaticaly.
 
 
Q