- """Extract a single file of this type to the given directory"""
-
- NOEXTRACT_CMD = config_get_value ('commands', 'noextract')
-
- # Make sure that both files are not the same file. If they are, don't run at all.
- if os.path.samefile (file, os.path.join (todir, file)):
- return SUCCESS
-
- cmd = NOEXTRACT_CMD % (file, todir)
- ret = run_command (cmd)