iwatch doesn't recognize directory hirarchy created with 'mkdir -p'

Bug #1178504 reported by Mboy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
iwatch (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When a series of directories is created with 'mkdir -p' only the first level gets watched by inotify.

E.g. after 'mkdir -p A/B/C/D' only A gets watched. Took me quite a while to find out why my scripts didn't behave like they should.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: iwatch 0.2.2-1
ProcVersionSignature: Ubuntu 3.2.0-41.45-lowlatency 3.2.42
Uname: Linux 3.2.0-41-lowlatency x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu17.2
Architecture: amd64
Date: Fri May 10 03:38:19 2013
InstallationMedia: Xubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.3)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: iwatch
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.iwatch.iwatch.xml: [modified]
mtime.conffile..etc.default.iwatch: 2013-03-16T18:01:29.858376
mtime.conffile..etc.iwatch.iwatch.xml: 2013-05-10T02:47:39.002749

Revision history for this message
Mboy (larsbehrens) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in iwatch (Ubuntu):
status: New → Confirmed
Revision history for this message
David D Lowe (flimm) wrote :

Did you use the recursive flag?

iwatch -r directory

I've found that iwatch doesn't seem to work if I use a trailing slash

iwatch -r directory/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.