Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (
- fn FixSystemAttribute dir =
- (
- if not doesDirectoryExist dir then return undefined
- if getFileAttribute dir #system then
- (
- try
- (
- setFileAttribute dir #system false
- format "system attribute disabled for: % \n" dir
- )catch
- (
- format "could not disable system attribute for: % \n" dir
- )
- )
- local parentdir = pathConfig.removePathLeaf dir
- if pathConfig.isRootPath parentdir then return undefined
- FixSystemAttribute parentdir
- )
- FixSystemAttribute (getdir #userscripts)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement