Fixed Price Projects          Flexibele IT oplossingen

Software op maat              Web Applications

Often you're programming a custom module that is creating files in the file system of DNN.  Than it would be great to have your new files immediately available in the file manager.

 

This DNN function that can accomplishes that:

 

Services.FileSystem.FolderManager.Instance.Synchronize(int portalID)

Services.FileSystem.FolderManager.Instance.Synchronize(int portalID, string relativePath, bool isRecursive, bool syncFiles)

 

Especially when you have a lot of files in your DNN portal, the second usage is very useful because it only synchronizes the one folder you just changed.

Categorie: .NET, DotNetNuke
Actions: E-mail | Permalink |

waardering