SenseNet.Services.WebDav.WebDavHandler.GetAttachmentName C# (CSharp) Method

GetAttachmentName() static private method

static private GetAttachmentName ( Node node, string propertyName ) : string
node Node
propertyName string
return string
        internal static string GetAttachmentName(Node node, string propertyName)
        {
            var binaryName = RepositoryPath.GetFileName(System.IO.Path.GetFileName(((BinaryData)node[propertyName]).FileName));

            if (string.IsNullOrEmpty(binaryName) || binaryName.StartsWith("."))
                binaryName = node.Name + binaryName;

            return binaryName;
        }