Сохраняйте оригинальные метки времени файлов, загруженных с помощью nautilus

Есть ли способ сохранить исходную дату файла при загрузке с сервера с помощью nautilus ftp? Как сейчас, файл имеет в качестве даты / времени загруженную дату / время, а не на сервере?

5
задан 27 December 2013 в 07:22

2 ответа

В качестве обходного пути, wget делает это по умолчанию. Со страницы руководства (страница руководства) :

   --timestamping
       Turn on time-stamping.

   --no-use-server-timestamps
       Don't set the local file's timestamp by the one on the server.

       By default, when a file is downloaded, it's timestamps are set to
       match those from the remote file. This allows the use of
       --timestamping on subsequent invocations of wget. However, it is
       sometimes useful to base the local file's timestamp on when it was
       actually downloaded; for that purpose, the
       --no-use-server-timestamps option has been provided.

Для nautilus вы можете отправить отчет об ошибке (запрос функции): https : //bugzilla.gnome.org/browse.cgi продукт = Nautilus

0
ответ дан 27 December 2013 в 07:22

Если вы, вероятно, делаете это из терминала, команда cp может помочь вам с опцией -p.

-p
same as --preserve=mode,ownership,timestamps

--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible additional attributes: context, links, all
0
ответ дан 27 December 2013 в 07:22

Другие вопросы по тегам:

Похожие вопросы: