X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=torrent;h=43bb2b74dc1b4395b5320e1362e34fcbb9d7b5da;hp=825293bab59d1a601abb6cb72688c273ca7bc9e8;hb=c1fd444890ddd1bb30699e88037ff9815e9a10ff;hpb=f09a1d179bd8414db9d273264d81288cf3db5b05 diff --git a/torrent b/torrent index 825293b..43bb2b7 100755 --- a/torrent +++ b/torrent @@ -71,10 +71,11 @@ def mctorrent_list(): torrent_error('Unknown name') name = info['name'] + encoding = torrent.get('encoding', None) + if 'files' in info: files = info['files'] paths = [] - encoding = torrent.get('encoding', None) for file in files: if 'path' not in file: torrent_error('Unknown path') @@ -161,17 +162,17 @@ def mctorrent_copyout(): def mctorrent_copyin(): """Put a file to the VFS""" - sys.exit("Torrent VFS doesn't support adding files") + sys.exit("Torrent VFS doesn't support adding files (read-only filesystem)") def mctorrent_rm(): """Remove a file from the VFS""" - sys.exit("Torrent VFS doesn't support removing files/directories") + sys.exit("Torrent VFS doesn't support removing files/directories (read-only filesystem)") mctorrent_rmdir = mctorrent_rm def mctorrent_mkdir(): """Create a directory in the VFS""" - sys.exit("Torrent VFS doesn't support creating directories") + sys.exit("Torrent VFS doesn't support creating directories (read-only filesystem)") def torrent_error(error_str):