1
00:00:01,420 --> 00:00:05,320
File system related tests what is that.

2
00:00:05,440 --> 00:00:10,230
In general we can test things which are related to file system.

3
00:00:10,350 --> 00:00:16,780
As for example checking of files and its permissions checking of symbolic things and so on.

4
00:00:17,320 --> 00:00:21,220
Let's look what five operators do we have.

5
00:00:21,220 --> 00:00:31,730
There is a list of most common ones the operator returns true if a variable holds an existing file.

6
00:00:31,870 --> 00:00:36,950
And by that it is fraud in a Linux environment file or a directory.

7
00:00:37,270 --> 00:00:45,340
Yes dedicatory you are hearing correctly because the directory is basically file which contains other

8
00:00:45,430 --> 00:00:46,830
files.

9
00:00:47,260 --> 00:00:49,470
Then we have f operator.

10
00:00:49,930 --> 00:00:51,080
We are using it.

11
00:00:51,250 --> 00:01:00,010
If we want to know if file we have provided is a regular file not that not a directory only a regular

12
00:01:00,160 --> 00:01:00,760
file.

13
00:01:02,210 --> 00:01:03,570
D operator.

14
00:01:04,450 --> 00:01:09,800
Returns true if a variable holds an existing directory.

15
00:01:10,030 --> 00:01:18,320
If we want to check if file has exit code permissions we are using x operator for checking symbolic

16
00:01:18,320 --> 00:01:25,780
Graines we are using capital L if you want to know if file is readable for us.

17
00:01:25,780 --> 00:01:34,930
The values are but and if you want to know if fout is ratable for us we can check it with W.

18
00:01:36,090 --> 00:01:36,940
Now.

19
00:01:37,160 --> 00:01:39,690
Let's see some simple example.

20
00:01:39,850 --> 00:01:49,970
We are asking if firelit represented by a variable fire and is now let's write some script where we

21
00:01:49,970 --> 00:01:50,900
can practice.
