Class AppAssets
- Namespace
- ToSic.Sxc.DataSources
- Assembly
- ToSic.Sxc.dll
Deliver a list of App files and folders from the current platform (Dnn or Oqtane).
[VisualQuery(NiceName = "App Assets", Type = DataSourceType.Source, ConfigurationType = "477d5de4-5ffa-43ef-8553-37354cb27660", NameId = "3fe6c215-4c37-45c1-8883-b4b2a47162a7", HelpLink = "https://go.2sxc.org/ds-appassets", Icon = "account_tree", Audience = Audience.Advanced, UiHint = "Files and folders in the App folder")]
[PublicApi]
public class AppAssets : CustomDataSourceAdvanced, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
- Inheritance
-
objectServiceBaseAppAssets
- Implements
- Inherited Members
Remarks
This provides 4 streams:
- All: Stream containing both files and folders
- Default: All files IFileModel
- Files: All Files IFileModel
- Folders: All folders IFolderModel
To figure out the properties returned and what they match up to, see IFileModel and IFolderModel.
History
- Started v18.02 for the first time - in the Picker Source App Assets.
- officially documented for v19.00, but API not fully final/stable, names may change.
Properties
FileFilter
The file name filter, such as "*.jpg". Uses the immutable convention.
[Configuration(Fallback = "*.*")]
public string FileFilter { get; }
Property Value
RootFolder
The root folder to start from, beginning in the app root. Uses the immutable convention.
[Configuration(Fallback = "/")]
public string RootFolder { get; }