B
B
BlagoYar Silence2021-06-03 21:12:43
linux
BlagoYar Silence, 2021-06-03 21:12:43

How to track the appearance of a file in a directory?

The essence is this:
There is Cloud MailRu (free)
There is a server. It has a directory ( empty )

. subdirectory. But at the same time, it did not end, because if another file comes, do the same

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lo-lo, 2021-06-05
@Vika_beauty_girl

1. look at the modification date of a directory
2. test "`echo dir/*`" != 'dir/*'
3. shopt -s nullglob ; files=*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question