﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
2924	Subdirectories remain in magic-folder upload queue indefinitely	cypher	daira	"Subdirectories created inside of a magic-folder appear to remain in the `magic-folder status` upload queue indefinitely. Example:

{{{
dev ~ % tahoe magic-folder status -n TestFolder
Magic-folder status for 'TestFolder':
Local files:
  file.txt (5.21 MB): good, version=0, created 6 minutes ago
  subdir@_ (0 B): good, version=0, created 5 minutes ago
  subdir@_other_file.txt (965.85 kB): good, version=0, created 2 minutes ago

Remote files:
  admin's remote:
    file.txt (5.21 MB): good, version=0, created 6 minutes ago
    subdir@_ (0 B): good, version=0, created 5 minutes ago
    subdir@_other_file.txt (965.85 kB): good, version=0, created 2 minutes ago

Uploads:
  subdir/: 0.0% done
}}}


In this case, the `subdir/: 0.0% done` upload operation will persist in between client restarts (i.e., be re-added to the queue on startup but remain at ""0.0% done"" forever), regardless of the contents of that subdirectory and/or the ongoing upload/download progress of any of the files contained inside it.

As meejah has suggested, this may have something to do with the ""flattening"" behavior of magic-folder (which does not use standard/nested tahoe directories but instead lists all files within a magic-folder at the top-level of a mutable object using ""@_"" as a path separator). In any case, the correct behavior should probably either clear/remove this upload operation once ""subdir"" has been successfully created in the remote magic-folder, or keep the upload operation in the list for some amount of time but display it as being 100% done."	defect	closed	normal	undecided	code-frontend-magic-folder	1.12.1	somebody else's problem	magic-folder		
