Migrated FileSystemSampleCode to unified api