示例#1
0
        /// <summary>
        /// Public Function to Move the File From Source Path to Target Path:
        /// Move the File in the File System and Update the Metadata Information.
        /// Called From Synchronization Method.
        /// </summary>
        /// <param name="sourcePath">The Source Path of File.</param>
        /// <param name="targetPath">The Target Path of File.</param>
        /// <param name="sourceAlbum">The Source Album to be Updated.</param>
        /// <param name="targetAlbum">The Target Album to be Updated.</param>
        public void moveSync(string sourcePath, string targetPath, Album sourceAlbum, Album targetAlbum)
        {
            copy(sourcePath,targetPath);

            // Check for Copy Failure
            if (!Directory.Exists(sourcePath) && !Directory.Exists(targetPath))
                targetAlbum.updateMeta(targetPath, sourcePath, sourceAlbum);
        }