storageSetting = StorageLocation.ProjectFile
elif location == DatasetInfo.Location.FileSystem:
// Determine if the path is relative or absolute
if os.path.isabs(info.filePath):
storageSetting = StorageLocation.AbsoluteLink
else:
storageSetting = StorageLocation.RelativeLink
After Change
storageSetting = StorageLocation.ProjectFile
elif location == DatasetInfo.Location.FileSystem:
// Determine if the path is relative or absolute
if isUrl(info.filePath) or os.path.isabs(info.filePath):
storageSetting = StorageLocation.AbsoluteLink
else:
storageSetting = StorageLocation.RelativeLink