WebDAVImpl.osxDoubleData.put(uri,
null);
return;
}
if (packageItem.containsAsset(resource[0])) {
AssetItem lazarus = packageItem.loadAsset(resource[0]);
lazarus.archiveItem(false);
} else {
AssetItem asset = packageItem.addAsset(resource[0],
"");
asset.updateFormat(resource[1]);
}
} else if (isGlobalAreas(path)) {
String[] resource = AssetItem.getAssetNameFromFileName(path[1]);
PackageItem packageItem = loadGlobalAreaFromRepository(getRepo());
//for mac OSX, ignore these resource fork files
if (path[1].startsWith("._")) {
WebDAVImpl.osxDoubleData.put(uri,
null);
return;
}
if (packageItem.containsAsset(resource[0])) {
AssetItem lazarus = packageItem.loadAsset(resource[0]);
lazarus.archiveItem(false);
} else {
AssetItem asset = packageItem.addAsset(resource[0],
"");
asset.updateFormat(resource[1]);
}
} else {
throw new UnsupportedOperationException("Can't add assets here.");
}
}