如何使用交互式shell在Sourceforge中安全地移动文件

时间:2012-07-29 09:52:45

标签: sourceforge

我正在尝试使用交互式shell在Sourceforge上整理项目的发布文件,而Sourceforge wiki根本没用。

我项目文件的当前结构类似于:

home
 \-frs
    \-project
         |-f
         | \-fo
         |    \-fooproject
         |          \- (contents same as fooproject below!)
         \-fooproject
               |-folder1
               |    |-v1.0
               |        \-file1.0.zip
               |    |-v2.0
               |        \-file2.0.zip
               \-folder2
                    |-v3.0
                    |   \-file3.0.zip
                    |-v4.0
                    |   \-file4.0.zip

我想做一些重命名/移动(只是文件夹 - 而不是文件)所以它看起来像这样:

home
 \-frs
    \-project
         |-f
         | \-fo
         |    \-fooproject
         |          \- (contents same as fooproject below!)
         \-fooproject
               |-1.0
               |   \-file1.0.zip
               |-2.0
               |   \-file2.0.zip
               |-3.0
               |   \-file3.0.zip
               |-4.0
                   \-file4.0.zip

我尝试这样做(使用mv命令)并且文件夹在SF网站上正确显示,但文件丢失(并且下载的最新文件链接已损坏)。所以我恢复了我的改变,现在恢复了正常。

我错过了什么吗?我是怎么意思重命名和移动这些文件夹的?我对复制的fooproject文件夹感到有点困惑(我看不到任何符号链接) - 我对home/frs/project/fooproject目录进行了更改。

我也担心丢失下载历史记录 - 我在某处读到了基于文件名的内容,所以只要我不重命名任何文件就可以了 - 这是正确的吗?

更新

所以我再试一次,它看起来只需要一分钟,然后文件出现(这很好),最新的文件链接确实更新(也很好),但下载统计重置为零(不好) !)并且更改与镜像不同步(不确定这需要多长时间)。因此,下载统计信息似乎基于完整路径,并且重命名任何文件夹会重置内部任何文件的计数:(

1 个答案:

答案 0 :(得分:2)

实际上,您可以使用交互式shell移动文件,但是:

  • 重命名任何文件/文件夹将重置该文件/文件夹的下载统计信息(您可以还原更改并且统计信息仍然存在)

  • 文件移动需要一段时间才能在Sourceforge上反映出来(给它至少30秒)

我联系了Sourceforge支持并收到了以下回复(希望他们更新他们的wiki以使其更清晰)。

Download stats are associated with the path and filename. So if you
move/rename a file the download stats for that particular file won't be
attached to the file anymore. That said, the counts will still apply to
the aggregate stats though (ie., total downloads per project).

Other than that, moving files/folders around should work as expected after
a short delay for items to sync (on the mirrors as you suggest, etc.)

As for the folders appearing empty, I'm not sure what happened there, if
(given the stats caveat), you still want to do this, give this another
try, and if the issue persists, please leave at least one folder in this
state and let us know so we can review.

Regards,
Chris Tsai, !SourceForge.net Support
相关问题