Skip to content

Commit

Permalink
v3.0.6973.0-Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ITHitBuild committed May 26, 2021
1 parent 2f7973c commit f6f8362
Show file tree
Hide file tree
Showing 331 changed files with 4,896 additions and 5,463 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<Company>IT Hit LTD.</Company>
<Product>IT Hit User File System</Product>
<Copyright>IT Hit User File System</Copyright>
<Description>Contains functionality common for all Virtual Drive samples, both for Windows and macOS. You will inherit your file and folder classes from IUserFile and iUserFolder defined in this module.</Description>
<Description>Contains functionality common for all Virtual Drive samples, both for Windows and macOS.</Description>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ITHit.FileSystem" Version="2.5.5091.0" />
<PackageReference Include="ITHit.FileSystem" Version="3.0.6973.0-Beta" />
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class FileSystemItemMetadataExt : IFileSystemItemMetadata
public FileAttributes Attributes { get; set; }

///<inheritdoc/>
public byte[] CustomData { get; set; }
public byte[] CustomData { get; set; } = new byte[] { };

///<inheritdoc/>
public DateTimeOffset CreationTime { get; set; }
Expand Down Expand Up @@ -48,11 +48,11 @@ public class FileSystemItemMetadataExt : IFileSystemItemMetadata
/// she/he tries to update this item .
/// Read-only flag does not protect this item from modifications.
/// </remarks>
public bool LockedByAnotherUser { get; set; }
public bool LockedByAnotherUser { get; set; } = false;

/// <summary>
/// Custom columns data to be displayed in the file manager.
/// </summary>
public IEnumerable<FileSystemItemPropertyData> CustomProperties { get; set; }
public IEnumerable<FileSystemItemPropertyData> CustomProperties { get; set; } = new FileSystemItemPropertyData[] { };
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ public class Settings
/// </summary>
public string ProductName { get; set; }

/// <summary>
/// Path to the folder that stores ETags, locks and other data associated with files and folders.
/// </summary>
public string ServerDataFolderPath { get; set; }

/// <summary>
/// Automatically lock the file in remote storage when a file handle is being opened for writing, unlock on close.
/// </summary>
Expand Down
34 changes: 34 additions & 0 deletions Common/StreamCopy.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;

namespace ITHit.FileSystem.Samples.Common
{
/// <summary>
/// Stream helper functions.
/// </summary>
public static class StreamCopy
{

/// <summary>
/// Asynchronously copies specified number of bytes from current stream to destination stream, using a specified buffer size.
/// </summary>
/// <param name="source">Source stream.</param>
/// <param name="destination">The stream to which the contents of the current file stream will be copied.</param>
/// <param name="bufferSize">The size, in bytes, of the buffer. This value must be greater than zero.</param>
/// <param name="count">Number of bytes to copy.</param>
public static async Task CopyToAsync(this Stream source, Stream destination, int bufferSize, long count)
{
byte[] buffer = new byte[bufferSize];
int read;
while (count > 0
&& (read = await source.ReadAsync(buffer, 0, (int)Math.Min(buffer.LongLength, count))) > 0)
{
await destination.WriteAsync(buffer, 0, read);
count -= read;
}
}
}
}
File renamed without changes.

This file was deleted.

138 changes: 0 additions & 138 deletions ITHit.FileSystem.Samples.Common.Windows/CustomData.cs

This file was deleted.

Loading

0 comments on commit f6f8362

Please sign in to comment.