Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1    Statistic    FMM    Blog  

Files.SetExcludedFromBackup

Sets file backup exclusion of a file or folder.

Component Version macOS Windows Linux Server iOS SDK
Files 12.0 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "Files.SetExcludedFromBackup"; Path; Value )   More

Parameters

Parameter Description Example
Path The native path to the file or folder to be checked. "/Users/John/Desktop/test.txt"
Value The new state.
Pass 1 to hide file or 0 to unhide file.
1

Result

Returns OK or error.

Description

Sets file backup exclusion of a file or folder.
Set to 1 if resource should be excluded from backups, 0 otherwise.
This property is only useful for excluding cache and other application support files which are not needed in a backup. Some operations commonly made to user documents will cause this property to be reset to false and so this property should not be used on user documents.

See also

Release notes

Blog Entries

Created 13th January 2022, last changed 13th January 2022


Files.SetCreationDate - Files.SetFileExtensionHidden

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat