This uses the new IOUtils instead of SysUtils.
IOUtils is cross-platform compatible and UNC aware (but is also buggy in a few places).
function ForceDirectories(FullPath: string): Boolean; // Works with UNC paths
begin
TDirectory.CreateDirectory(FullPath);
Result:= DirectoryExists(FullPath);
end;