Skip to content

Commit

Permalink
#346 ディレクトリへのハードリンクの作成はできないので制限
Browse files Browse the repository at this point in the history
  • Loading branch information
yamahubuki committed Aug 1, 2020
1 parent e6931f4 commit 020b87f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions browsableObjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ def GetRootDrivePath(self):
class Folder(File):
__slots__=[]

def __init__(self,**args):
super().__init__(*args)
self.canHardLinkTarget=False

def GetListTuple(self):
"""表示に必要なタプルを返す。フォルダなのでサイズ不明(-1)の場合があり、この場合は <dir> にする。"""
if self.size<0:
Expand Down

0 comments on commit 020b87f

Please sign in to comment.