AccessDeniedException on hardlinks workaround

Any questions? Need some help?
Post Reply
Tom-Pouce
Posts: 2
Joined: 14 Jul 2014, 02:07

AccessDeniedException on hardlinks workaround

Post by Tom-Pouce »

Hi all,

First of all thank you for creating a functional application for renaming large collections of movies, series and music. It is an application that, now I know it exists, will never be de-installed from my computer.

While working with FileBot I however encountered an error that I think I should share with you. I did use a workaround to avoid the error, but it probably is rather easy to fix.

Let me first tell you what I tried to do and why,
I have a TVersity Media server running on my PC to stream movies and series to my TV. The way TVersity works is, it creates a list of all the movies ordered the way it is stored on the computer, and sends that to any medium that requests media from it. The TV then is able to browse through that list of movies and display the file names, but you have to traverse the folder structure the way it is stored on the PC. I have a large movie collection which makes it difficult to find the right movie in that way. That was the reason I started searching for a renaming tool to, firstly make the names more logical and structured, and secondly to reorder my collection without having to check every movie.

To make it easier to navigate my movies I figured it was easiest to create hard links to the files which were ordered through different schemes. (I tried softlinks first but TVersity or the TV could not read them). While I was making the hardlinks I got an Access Denied Exception, in some of my movie directories. The reason for that was that those movie directories contained a VIDEO_TS folder. So for some reason the hardlinks cannot point to such a folder. I worked around the issue by copying the files inside that folder one level up the chain, but I think with a recursive call the issue could be solved.

So if anyone encounters an AccessDeniedException while making hard links, check if de directory that creates the error contains a folder instead of files.

Again thanks for an awesome application

kind regards
Tom
Last edited by Tom-Pouce on 14 Jul 2014, 12:12, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AccessDeniedException on hardlinks workaround

Post by rednoah »

You can only hardlink files, not directories. That's universal filesystem design and applies to all OSes.

@see http://askubuntu.com/questions/210741/w ... irectories
:idea: Please read the FAQ and How to Request Help.
Tom-Pouce
Posts: 2
Joined: 14 Jul 2014, 02:07

Re: AccessDeniedException on hardlinks workaround

Post by Tom-Pouce »

Ah ok. then my work around works :D
Post Reply