Beispiel #1
0
        public static IByteDevice Create(Uri.Locator resource)
        {
            IByteDevice result = ByteDevice.Open(resource, System.IO.FileMode.Create);

            if (result.IsNull() && resource.NotNull())
            {
                System.IO.Directory.CreateDirectory(resource.Path.FolderPath.PlatformPath);
                result = ByteDevice.Open(resource, System.IO.FileMode.Create);
            }
            return(result);
        }