2016-04-04 20:27:55 -04:00
|
|
|
// +build openbsd netbsd freebsd dragonfly
|
|
|
|
|
|
|
|
/*
|
2019-04-09 14:39:42 -04:00
|
|
|
* MinIO Cloud Storage, (C) 2016 MinIO, Inc.
|
2016-04-04 20:27:55 -04:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2016-08-18 19:23:42 -04:00
|
|
|
package cmd
|
2016-04-04 20:27:55 -04:00
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
2016-04-04 22:55:07 -04:00
|
|
|
// True if dirent is absent in directory.
|
|
|
|
func isEmptyDirent(dirent *syscall.Dirent) bool {
|
2016-04-04 20:27:55 -04:00
|
|
|
return dirent.Fileno == 0
|
|
|
|
}
|